Help

Re: AirTable PHP using new Personal Token

Solved
Jump to Solution
1810 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Jon_Eynon
6 - Interface Innovator
6 - Interface Innovator

https://github.com/sleiman/airtable-php

I have been using this tool flawlessly and working my new Personal Token where my API key existed.

use \TANIOS\Airtable\Airtable;
$airtable = new Airtable(array(
    'api_key' => 'API_KEY',
    'base'    => 'BASE_ID'
));

When I swap out the API_KEY with my new Personal Token it doesn't work, which I suspected. What do I need to change api_key to? Is it that simple I hope! Thanks in advance!- Jon

1 Solution

Accepted Solutions
GavinA
8 - Airtable Astronomer
8 - Airtable Astronomer

@Jon_Eynon You are correct in that you can just swap them. Have you set the correct scopes for the personal access token? 

Checkout this guide for some examples.

See Solution in Thread

2 Replies 2
GavinA
8 - Airtable Astronomer
8 - Airtable Astronomer

@Jon_Eynon You are correct in that you can just swap them. Have you set the correct scopes for the personal access token? 

Checkout this guide for some examples.

I was only using the first 12 digits on the personal token and not the full string. In addition, I needed to clear the cache from the server running the scripts. It was picking up the new token string. Issue solved!