Help

The Airtable Community will undergo scheduled maintenance on September 17 from 10:00 PM PST to 11:15 PM PST. During this period, you may experience temporary disruptions. We apologize for any inconvenience and appreciate your understanding.

replace api key with library airtable js

449 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