Skip to content

Instantly share code, notes, and snippets.

View JanethL's full-sized avatar

Janeth Graziani JanethL

View GitHub Profile
@JanethL
JanethL / __main__.js
Last active September 21, 2018 20:01
Airtable-Typeform- Clearbit
const Person = require('clearbit')(process.env.CLEARBIT_API_KEY).Person;
const Airtable = require('airtable');
const base = new Airtable({ apiKey: process.env.AIRTABLE_API_KEY }).base(process.env.AIRTABLE_BASE_KEY);
// Maps typeform answers to columns in airtable
const typeformFieldsToAirtableFields = {
short_text: 'name',
email: 'email',
multiple_choice: 'message_type',