@@ -0,0 +1,592 @@
+import sys%0A%0Afrom Ziggeo import Ziggeo%0Aimport json%0Aif(len(sys.argv) %3C 5):%0A%09print (%22Error%5Cn%22)%0A%09print (%22Usage: $%3Epython stream_download_image.py YOUR_API_TOKEN YOUR_PRIVATE_KEY VIDEO_TOKEN STREAM_TOKEN PUSH_SERVICE_TOKEN%5Cn%22)%0A%09sys.exit()%0A%0Aapi_token = sys.argv%5B1%5D%0Aprivate_key = sys.argv%5B2%5D%0Avideo_token = sys.argv%5B3%5D%0Astream_token = sys.argv%5B4%5D%0A%0Aziggeo = Ziggeo(api_token, private_key)%0A%0Afile_name = video_token + %22_%22 + stream_token + %22.png%22%0Afile = open('assets/' + file_name, %22wb%22)%0Adownloaded_file = ziggeo.streams().download_image(video_token, stream_token)%0Afile.write(downloaded_file)%0Afile.close()

add script to download image covershot from a stream