Created
March 10, 2017 16:32
-
-
Save halvardos/89bac5b158e7c644232d17f69cd20fc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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