airtable

AirTable API Find record by email

≡放荡痞女 提交于 2020-06-01 03:24:58
问题 I'm trying to see if a user exists by trying to find their email in the user's table, if it doesn't exist then I'm inserting the user. var Airtable = require('airtable'); var base = new Airtable({ apiKey: process.env.AIRTABLE_API_KEY }).base(process.env.AIRTABLE_BASE_ID); app.post('/addUser', (req, res) => { const { uid, displayName, email, photoURL, provider } = req.query; base('users').find({filterByFormula: `FIND(email = '${email}')`}, function(err, record) { if (err) res.status(400).send

why is Airtable API and Python not workinng?;

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 04:42:27
问题 I am new to Python and APIs and I am trying to get some data from the API. More specifically I am trying to get some tables from a base. I am following this GitHub repository's instructions: https://github.com/bayesimpact/airtable-python So far I have created a virtual environment called mypyth and in there I have initiated a script called get_data.py This is what my script looks like (I have written API KEY instead of my real api key: import requests from airtable import airtable at =

Getting more than 100 records with Airtable

北战南征 提交于 2019-12-11 15:33:27
问题 I'm building an App that gets a database on Airtable with the Requests library and transform it into a list. My issue is that I can only get 100 records with the URL solicitation. I tried to find a solution in the Airtable API, but the changes in the URL to insert the maxRecords didn't work. I'm using this URL to get the data. But it returns just 100 records. https://api.airtable.com/v0/appP6G7OJmLzUCoUt/Table%201?api_key=MY_KEY I've read about maxRecords and pagination, but I couldn't find a

How to return data from the done() callback when working with Airtable.js?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:02:42
问题 First, let me start with what I want to achieve. I want to query a table in Airtable that includes data from a linked table. Airtable returns the IDs of records in linked tables so I need to do a second lookup on each of those records to get the data I want (e.g. Name ). Ultimately, I want to return to the client the ID and the other fields from the linked record. Problem is, I'm failing to achieve this because of the asynchronous nature of the API and my lack of understanding. The best I've