Back to ziggeo.com

How can I push a list of videos to your servers?

Pushing a folder full of videos to our servers can be achieved as follows. We also use the filenames as keys for the videos. The following Python script is an example on how to do it:

token = APPLICATIONTOKEN
private_key = PRIVATEKEY
rootdir = DIRECTORY

ziggeo = Ziggeo(token, private_key)

for subdir, dirs, files in os.walk(rootdir):
    for file in files:
        ziggeo.videos().create({"key": os.path.splitext(file)[0]}, os.path.join(subdir, file))
Have more questions? Submit a request

Comments