Package: videoguys
videoguys-python-clientOfficial APIAPI version: 0.1Package version: 0.1.0Requirements.Python 3.5+SetuptoolsInstall viaSetuptools(for local testing).pipinstall--user--upgradepip
pipinstall--user--upgradesetuptools
sudopythonsetup.pyinstall--user--prefix=OrInstall viaPip(easiest method).sudopython-mpipinstallvideoguysThen import the package:importvideoguysGetting StartedPlease follow the installation procedure and then run the following:from__future__importprint_functionimportsysimportvideoguysfrompprintimportpprintapi_client=videoguys.ApiClient(api_token="<api_key>",api_host="[vevio|vidup]")try:pair_response=api_client.getVideoPair("<video_code>")pprint(pair_response)video_info=api_client.getVideoInfo("<video_code>")pprint(video_info)filepath="absolute_path_to_file"video_upload=api_client.uploadVideo(filepath=filepath,# required filepath for the new video upload# size=size, # optional in this function, filepath will auto determine the sizetitle=title,# optional title for the new videodescription=description,# optional description for the new videofolder_id=folder_id,# optional folder_id for the new videolite=lite,# optional lite setting for the new video [0 or 1]public=public,# optional public setting for the new video [0 or 1])pprint(video_upload)video_uploads=api_client.getVideoUploads()pprint(video_uploads)video_upload=api_client.updateVideoUpload(<upload_code>,title=title,# optional new title for the new videodescription=description,# optional new description for the new videofolder_id=folder_id,# optional new folder_id for the new videolite=lite,# optional new lite setting for the new video [0 or 1]public=public,# optional new public setting for the new video [0 or 1])pprint(video_upload)video_upload=api_client.getVideoUpload(<upload_code>)pprint(video_upload)deleted_video_upload=api_client.deleteVideoUpload(<upload_code>)pprint(deleted_video_upload)url="http/https file url"url_upload=api_client.newUrlUpload(url=url,# required url for the new url uploadtitle=title,# optional title for the new urldescription=description,# optional description for the new urlfolder_id=folder_id,# optional folder_id for the new urllite=lite,# optional lite setting for the new url [0 or 1]public=public,# optional public setting for the new url [0 or 1])pprint(url_upload)url_uploads=api_client.getUrlUploads()pprint(url_uploads)url_upload=api_client.updateUrlUpload(<upload_code>,title=title,# optional new title for the new urldescription=description,# optional new description for the new urlfolder_id=folder_id,# optional new folder_id for the new urllite=lite,# optional new lite setting for the new url [0 or 1]public=public,# optional new public setting for the new url [0 or 1])pprint(url_upload)url_upload=api_client.getUrlUpload(<upload_code>)pprint(url_upload)url_upload_status=api_client.getUrlUploadStatus(<upload_code>)pprint(url_upload_status)# if the url upload has been downloaded then you should clear it# to avoid concurrent hitting limitsif(url_upload_statusand'status'inurl_upload_statusandurl_upload_status['status']=="downloaded"):deleted_url_upload=api_client.deleteUrlUpload(<upload_code>)pprint(deleted_url_upload)exceptValueErrorase:print("%s"%e)exceptvideoguys.ErrorWithResponsease:print("%s"%e.response.body['message'])except:print("Unexpected error:",sys.exc_info()[0])Documentation For AuthorizationAll endpoints except getVideoInfo("<video_code>") and getVideoPair("<video_code>") requires authorization.AuthorVideoGuys