Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kern/zap-airtable
⛈ Use Google Cloud Functions to add records to Airtable
https://github.com/kern/zap-airtable
airtable google-cloud-functions serverless
Last synced: 30 days ago
JSON representation
⛈ Use Google Cloud Functions to add records to Airtable
- Host: GitHub
- URL: https://github.com/kern/zap-airtable
- Owner: kern
- Created: 2019-10-15T23:52:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:44:07.000Z (almost 2 years ago)
- Last Synced: 2023-03-10T22:03:29.144Z (over 1 year ago)
- Topics: airtable, google-cloud-functions, serverless
- Language: TypeScript
- Homepage:
- Size: 195 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zap-airtable
Use Google Cloud Functions to create records in Airtable.
## Usage
Create a file `config.yaml` with the following information:
```yaml
AIRTABLE_API_KEY: keyXXXXXXXXXXXXXX # Airtable API key
AIRTABLE_BASE: appXXXXXXXXXXXXXX # Airtable base identifier
AIRTABLE_TABLE: My Table # name of the Airtable table
AIRTABLE_FIELDS: First Name,Last Name # whitelisted fields to be added
```Then deploy the function to Google Cloud:
```bash
gcloud functions deploy MY_CLOUD_FN_NAME \
--runtime nodejs10 \
--trigger-http \
--entry-point perform \
--source gs://zap-airtable/function.zip \
--env-vars-file config.yaml
```You can now make POST requests to the function's trigger URL. Fields passed in the request body will be added to a new record in the designated Airtable base/table.
## Development
```bash
make lint
make build
```## License
BSD 3-Clause