![]() To fix this, we go back over to the Config tab, enter records under the Response key path field, and try again. This is because the data we want is nested under the records key. ![]() Our initial test gets some data, but gives an error: ![]() Since our base configuration already matches the URL for getting a collection of records from the Stories endpoint (as is typical for REST APIs), we can simply head over to the Test tab and try it out. As is typical for token-based authentication, the value takes the format Bearer your_api_key, so just replace your_api_key with your API key from the previous step. Headersįinally, we need to set up the Authorization header. The easiest way to get the ID is to open the Airtable API documentation via Help > API documentation when logged in to Airtable, then copying the URL from the Authentication section example. With replaced by your workspace/project ID. The resource URL will include the Airtable base URL, your unique workspace/project ID, and the target resource. Give your resource a descriptive ID, such as AirtableStories. In this example, we'll use the Stories resource – you can view the full Airtable API documentation by clicking Help > API documentation when signed in to Airtable. Next, open the data configurator via the Data button in the global toolbar at the top, and create a new REST API direct integration data resource. Set up the REST API direct integration data resource The secure way would be to code a separate middleware backend that houses the API key secret and has per-user authentication, or else limits the possible operations to just reading data – so users first connect to your middleware, which then connects to Airtable. As such, the steps here are only suitable for private use – a malicious attacker could download your app binary from Google Play / App Store or access the web app's source code, extract the API key and wreck havoc on your data. Note that the Airtable API key you gives full access to your API, and it will get packaged as plaintext in your app config.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |