wagtail-nest / wagtail-airtable

Airtable import and export support for Wagtail pages and Django models.
BSD 3-Clause "New" or "Revised" License
49 stars 15 forks source link

API Keys can no longer access the Airtable API #69

Open peteratdemtec opened 2 months ago

peteratdemtec commented 2 months ago

Hi,

According to https://support.airtable.com/docs/creating-personal-access-tokens and indeed my own experience, API Keys can no longer access the Airtable API. Attempting to use a personal access token by assigning it to the AIRTABLE_API_KEY setting fails with HTTP 401: Unauthorized, meaning this library is completely unusable until this is fixed.

Would it be possible to update this package to include support for personal access tokens?

zerolab commented 2 months ago

We're using an older SDK for Airtable - https://github.com/wagtail-nest/wagtail-airtable/blob/b0f58751ad7a5767a70e92da57f4f00a51fdf770/pyproject.toml#L36

It has now been renamed to pyAirtable and is at version 2.x. The docs do mention the PATs - https://pyairtable.readthedocs.io/en/stable/getting-started.html

@KalobTaulien do you use Airtable in any active projects to look at this? Alternatively @peteratdemtec we will welcome a PR