Skip to main content

replace api key with library airtable js

  • May 16, 2023
  • 1 reply
  • 0 views

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 ?

1 reply

the only change you have to make with your current code is replacing the api key with the token


Reply