Help

replace api key with library airtable js

507 0
cancel
Showing results for 
Search instead for 
Did you mean: 
averoa
4 - Data Explorer
4 - Data Explorer

Hello 
I use the library airtable.js and i would like to change the auth methode before jan 2024.

Actually this is my code 

new Airtable({apiKey: vars.API_KEY}).base(vars.ID_AIRTABLE_TABLE_BUG);

but i would like make something like : 

new Airtable({
endpointUrl: 'https://airtable.com/{BASE_ID}/{TABLE_ID}',
oauthToken: {
clientId: 'CLIENT_ID',
clientSecret: 'CLIENT_SECRET'
},
});

 but it's not working, do i miss something ?

0 Replies 0