Skip to content

Instantly share code, notes, and snippets.

@jackcrombie
jackcrombie / zapier_wistia_url_upload_api.py
Last active April 3, 2019 08:06
Run this in a code step in Zapier to upload files from their public URL to a wistia Project. This allows us to bypass some of the file size and timeout issues faced when trying to upload large videos (+1GB) to Wistia via dropbox or google drive integrations. I've used Amazon s3 to store the files and serve them to Wistia.
import requests #imports pythons requests library
import json #imports pythons json library
#grab data from previous steps in Zapier
s3URL = input_data['s3URL']
project_id = input_data['projectID']
#print these to logs for troubleshooting while building zaps
print s3URL #prints out s3 url from Airtable
print project_id #prints project ID from Airtable

Keybase proof

I hereby claim:

  • I am jackcrombie on github.
  • I am jackcrombie (https://keybase.io/jackcrombie) on keybase.
  • I have a public key whose fingerprint is 8C03 BB1C 6FAC 842F 48D0 10A8 85C3 93E5 4249 7227

To claim this, I am signing this object: