Skip to content

Instantly share code, notes, and snippets.

@halvardos
Created March 10, 2017 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halvardos/bf8ee39750ddbc868641075c494774a8 to your computer and use it in GitHub Desktop.
Save halvardos/bf8ee39750ddbc868641075c494774a8 to your computer and use it in GitHub Desktop.
import synq
import os
# Init the library by setting API key
api_key = os.environ['SYNQ_API_KEY']
videoAPI = synq.VideoAPI(api_key)
# Create new video object with userdata {"foo":"bar"}
video_object = videoAPI.create(userdata={"foo":"bar"})
video_id = video_object[video_id]
# Get the uploader url that we can embed into a webpage
uploader_url = videoAPI.uploader(video_id)["uploader_url"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment