Comments (9)
That sounds great, and seems the right way to go. I will try out the set_airtable_api_key()
with a new PAT. (And will report back if it doesn't work as expected.) Thanks.
from rairtable.
Hey there @timothoms -- thanks for bringing this to my attention!
I'm not sure if they use (or will use) PATs in the same manner as they currently use the API key. Right now, the API key stored by set_airtable_api_key()
is passed to an Authorization
header in the relevant GET/POST/PATCH/DELETE request. If PATs are going to be expected differently, I'll have to make some changes to keep set_airtable_api_key()
compliant. I took a quick look at the API documentation and don't see anything yet.
When there's a clear path forward, I'll likely deprecate set_airtable_api_key()
in favor of a new function. My guess is that the major functionality it will need is improved error handling, as it'd be easy to have permissions errors related to PAT scope the the current function might not surface in a helpful way.
from rairtable.
Great, thanks! Might be useful to keep set_airtable_api_key() until Airtable deprecates it in Jan 2024.
Does this documentation help?: https://airtable.com/developers/web/api/authentication
from rairtable.
That's perfect, I hadn't seen that. That confirms that the tokens and api keys are used in the same way, so the set
function will actually work as-is, though I think there should be a PAT-specific function for clarity
I'm thinking that the cadence for retiring set_airtable_api_key()
would be
- Add deprecation warnings to
set_airtable_api_key()
and release a newset_airtable_pat
function - End of 2024, remove set_airtable_api_key
Since the PATs have scope limitations, it seems like it might be useful to have a means of storing more than one PAT and being able to select between them.
from rairtable.
Related Issues (10)
- Getting Error when trying to read base HOT 3
- Integrate metadata API
- Refactor suggestion: Migrating package from `{httr}` to `{httr2}` HOT 6
- Structure and format for `airtable` class objects HOT 2
- `update_records()` fails for data type multiple select. HOT 2
- Error in reading User field types HOT 7
- Columns returned in random order HOT 1
- Downloading only fields included in a View HOT 7
- Automatically create new Single or Multi select options. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rairtable.