Hello. I have been using an API token (the original method) for authenication to get records from a particular table. I have been using the 'airtable' Python library to do this. We are now switching to use a personal access token (PAT) because the API token authentication method is going away. So, I can no longer use the 'airtable' Python library because it doesn't support PATs. So, I am simply using the 'requests' Python library this time around. For whatever reason, I have a handful of columns that will not download when using the 'requests' Python library with my PAT. However, I can download these columns when using the 'airtable' Python library and my API token. Below is my code. In the field list, I put a comment to denote the fields that won't download when I run my code. These columns just don't appear in my final downloaded file. Is there something I'm missing? Or is there a better library that I should be using? Thanks!
Are you sure you can't use the PAT? In all of my integrations, I simply swapped the API key for the token.
So I messed up! You are correct, I can use the PAT with the Airtable Python libary. I wish I had figured that out sooner! Haha!!! Thanks for responding though! I appreciate it!
Are you sure you can't use the PAT? In all of my integrations, I simply swapped the API key for the token.
However, I do find it strange that using the requests library, I was unable to get the same results as when using the Airtable library. The results usign the requests library had slighty more records (around a hundred or so) and a couple columns would not come through. ??
However, I do find it strange that using the requests library, I was unable to get the same results as when using the Airtable library. The results usign the requests library had slighty more records (around a hundred or so) and a couple columns would not come through. ??
Yes that is strange, although it's hard for me to give an explanation without directly working with your code.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.