Skip to content

Instantly share code, notes, and snippets.

@halvardos
Created March 10, 2017 16:32
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/89bac5b158e7c644232d17f69cd20fc9 to your computer and use it in GitHub Desktop.
Save halvardos/89bac5b158e7c644232d17f69cd20fc9 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)
# Get the video id of the created video
video_id = "0c19b46991ae49be994cec9f3909329a"
# get url for embeddable video upload widget
video_object = videoAPI.details(video_id)
print(video_object["player"]["embed_url"])
print(video_object["player"]["thumbnail_url"])
print(video_object["player"]["views"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment