Skip to content

Instantly share code, notes, and snippets.

@KalebNyquist
Created September 16, 2019 18:20
Show Gist options
  • Save KalebNyquist/d59edfa3edbca3ed04419d56ddcb6481 to your computer and use it in GitHub Desktop.
Save KalebNyquist/d59edfa3edbca3ed04419d56ddcb6481 to your computer and use it in GitHub Desktop.
Medium Post Step 7
import json
upload_data = json.dumps(upload_dict)
headers = {
"Authorization" : "Bearer INSERT AIRTABLE USER API KEY HERE",
'Content-Type': 'application/json',
}
URL = 'https://api.airtable.com/v0/INSERT AIRTABLE DOC KEY HERE/Online%20Media%20Hits'
response = requests.post(URL, headers=headers, data=upload_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment