{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# videoguys-python-client\nOfficial API\n\n- API version: 0.1\n- Package version: 0.1.0\n\n## Requirements.\n\nPython 3.5+\n\n### Setuptools\n\nInstall via [Setuptools](https://pypi.org/project/setuptools/) (for local testing).\n\n```sh\npip install --user --upgrade pip\npip install --user --upgrade setuptools\nsudo python setup.py install --user --prefix=\n```\n\nOr\n\nInstall via [Pip](https://pypi.org/project/pip/) (easiest method).\n\n```sh\nsudo python -m pip install videoguys\n```\n\nThen import the package:\n```python\nimport videoguys\n```\n\n## Getting Started\n\nPlease follow the installation procedure and then run the following:\n\n```python\nfrom __future__ import print_function\n\nimport sys\nimport videoguys\n\nfrom pprint import pprint\n\napi_client = videoguys.ApiClient(\n api_token=\"\", api_host=\"[vevio|vidup]\"\n)\n\ntry:\n pair_response = api_client.getVideoPair(\"\")\n pprint(pair_response)\n\n video_info = api_client.getVideoInfo(\"\")\n pprint(video_info)\n\n filepath = \"absolute_path_to_file\"\n video_upload = api_client.uploadVideo(\n filepath=filepath, # required filepath for the new video upload\n # size=size, # optional in this function, filepath will auto determine the size\n title=title, # optional title for the new video\n description=description, # optional description for the new video\n folder_id=folder_id, # optional folder_id for the new video\n lite=lite, # optional lite setting for the new video [0 or 1]\n public=public, # optional public setting for the new video [0 or 1]\n )\n pprint(video_upload)\n\n video_uploads = api_client.getVideoUploads()\n pprint(video_uploads)\n\n video_upload = api_client.updateVideoUpload(\n ,\n title=title, # optional new title for the new video\n description=description, # optional new description for the new video\n folder_id=folder_id, # optional new folder_id for the new video\n lite=lite, # optional new lite setting for the new video [0 or 1]\n public=public, # optional new public setting for the new video [0 or 1]\n )\n pprint(video_upload)\n\n video_upload = api_client.getVideoUpload()\n pprint(video_upload)\n\n deleted_video_upload = api_client.deleteVideoUpload()\n pprint(deleted_video_upload)\n\n url = \"http/https file url\"\n url_upload = api_client.newUrlUpload(\n url=url, # required url for the new url upload\n title=title, # optional title for the new url\n description=description, # optional description for the new url\n folder_id=folder_id, # optional folder_id for the new url\n lite=lite, # optional lite setting for the new url [0 or 1]\n public=public, # optional public setting for the new url [0 or 1]\n )\n pprint(url_upload)\n\n url_uploads = api_client.getUrlUploads()\n pprint(url_uploads)\n\n url_upload = api_client.updateUrlUpload(\n ,\n title=title, # optional new title for the new url\n description=description, # optional new description for the new url\n folder_id=folder_id, # optional new folder_id for the new url\n lite=lite, # optional new lite setting for the new url [0 or 1]\n public=public, # optional new public setting for the new url [0 or 1]\n )\n pprint(url_upload)\n\n url_upload = api_client.getUrlUpload()\n pprint(url_upload)\n\n url_upload_status = api_client.getUrlUploadStatus()\n pprint(url_upload_status)\n\n # if the url upload has been downloaded then you should clear it\n # to avoid concurrent hitting limits\n if (url_upload_status and\n 'status' in url_upload_status and\n url_upload_status['status'] == \"downloaded\"):\n\n deleted_url_upload = api_client.deleteUrlUpload()\n pprint(deleted_url_upload)\nexcept ValueError as e:\n print(\"%s\" % e)\nexcept videoguys.ErrorWithResponse as e:\n print(\"%s\" % e.response.body['message'])\nexcept:\n print(\"Unexpected error:\", sys.exc_info()[0])\n\n```\n\n## Documentation For Authorization\n\n All endpoints except getVideoInfo(\"\") and getVideoPair(\"\") requires authorization.\n\n\n## Author\n\n VideoGuys\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/VideoGuys/python-client", "keywords": "Video API,Video Guys,Vevio,Vidup", "license": "", "maintainer": "", "maintainer_email": "", "name": "videoguys", "package_url": "https://pypi.org/project/videoguys/", "platform": "", "project_url": "https://pypi.org/project/videoguys/", "project_urls": { "Homepage": "https://github.com/VideoGuys/python-client" }, "release_url": "https://pypi.org/project/videoguys/0.0.3/", "requires_dist": [ "simple-rest-client (>=0.5.4)" ], "requires_python": "", "summary": "Video API", "version": "0.0.3" }, "last_serial": 5421099, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "a8c458360fec30e5223e17929cdb9143", "sha256": "9a0f7423b41253ac08e45c5d29b42e855a7604eb8b4a315b79f111924bd895d8" }, "downloads": -1, "filename": "videoguys-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a8c458360fec30e5223e17929cdb9143", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5958, "upload_time": "2019-05-16T15:58:34", "url": "https://files.pythonhosted.org/packages/7e/aa/35c075e61bcbf5a8421f19edd8b8d433bbaf4f18c020f10241857b73be10/videoguys-0.0.2-py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "057d88a4147bd84339dfa47e24fecc09", "sha256": "a6f422d7276cd2be2263c4fdf650835e8a44eb699593d489c097e052e38c3dd5" }, "downloads": -1, "filename": "videoguys-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "057d88a4147bd84339dfa47e24fecc09", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6850, "upload_time": "2019-06-19T16:02:45", "url": "https://files.pythonhosted.org/packages/eb/56/d3705d36b99fd92de0fdde8d52143f9f174e656dce07d9aeeb97dbfa4344/videoguys-0.0.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "057d88a4147bd84339dfa47e24fecc09", "sha256": "a6f422d7276cd2be2263c4fdf650835e8a44eb699593d489c097e052e38c3dd5" }, "downloads": -1, "filename": "videoguys-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "057d88a4147bd84339dfa47e24fecc09", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6850, "upload_time": "2019-06-19T16:02:45", "url": "https://files.pythonhosted.org/packages/eb/56/d3705d36b99fd92de0fdde8d52143f9f174e656dce07d9aeeb97dbfa4344/videoguys-0.0.3-py3-none-any.whl" } ] }