simonw / airtable-export

Export Airtable data to YAML, JSON or SQLite files on disk
https://datasette.io/tools/airtable-export
Apache License 2.0
112 stars 15 forks source link

Airtable is changing its authentication system #21

Closed wkdewey closed 11 months ago

wkdewey commented 1 year ago

See this announcement: https://community.airtable.com/t5/announcements/new-api-capabilities-now-in-ga-and-upcoming-api-keys-deprecation/ba-p/141824?utm_ID=recdXE5vJZZ5vR0mh&utm_ID=recdXE5vJZZ5vR0mh&utm_source=lifecycle_team&utm_source=lifecycle_team&utm_medium=email&utm_medium=email&utm_campaign=it_ss_ss_api_deprecation&utm_campaign=it_ss_ss_api_depreciation&utm_content=email-blast_api_1a&utm_content=email-blast_api_key_users. Will this tool still work with the new system?

curt-mitch commented 1 year ago

I was able to test this successfully by passing a new personal access token as the --key=key parameter.

It looks like the way this tool is passing the key as a bearer token is still in line with what the new personal access token is expecting for Airtable's API: https://github.com/simonw/airtable-export/blob/fdb3decfaf844c8ce518aa0206bff9c17d019e13/airtable_export/cli.py#L113

See the Example block of code here: https://airtable.com/developers/web/api/authentication

pmareke commented 1 year ago

Hi @wkdewey and @curt-mitch Exactly, from the point of view of the user of the Airtable API is as simple as passing an access token instead of an API Key.

simonw commented 11 months ago

Glad to hear personal access tokens still work!