{ "info": { "author": "BYM Development LLC", "author_email": "dev@sightseeingtech.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# PassHub API Client\n\nPassHub API documentation\n\nAccess PassHub with Python. This module offers high level and low level calls to the API.\n\n\n## Requirements.\n\nPython 2.7 and 3.4+\n\n## Installation & Usage\n### pip install\n\nIf the python package is hosted on Github, you can install directly from Github\n\n```sh\npip install sightseeingtech_passhub_api\n```\n(you may need to run `pip` with root permission: `sudo pip install sightseeingtech_passhub_api`)\n\nThen import the package:\n```python\nimport sightseeingtech_passhub_api\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport sightseeingtech_passhub_api\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nfrom __future__ import print_function\nimport time\nimport sightseeingtech_passhub_api\nfrom sightseeingtech_passhub_api.rest import ApiException\nfrom pprint import pprint\n\nconfiguration = Configuration()\nconfiguration.api_key['X-Api-Key'] = 'YOUR_API_KEY'\nconfiguration.host = 'YOUR_HOST'\nconfiguration.verify_ssl = False\n\nclient = ApiClient(configuration)\n\ntry:\n productResourceApi = sightseeingtech_passhub_api.ProductResourceApi(client)\n\n print('Loading products...')\n\n products = productResourceApi.get_all_products()\n\n print('Product %d products is/are loaded.\\n' % len(products))\nexcept ApiException as e:\n print(\"Exception when calling ProductResourceApi->get_all_products: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*OrderRecordResourceApi* | **createOrderRecord** | **POST** /api/v1/orderRecords | createOrderRecord\n*OrderRecordResourceApi* | **getAllOrderRecords** | **GET** /api/v2/orderRecords | getAllOrderRecords\n*OrderRecordResourceApi* | **getOrderRecord** | **GET** /api/v1/orderRecords/{id} | getOrderRecord\n*OrderRecordResourceApi* | **mergeVouchers** | **POST** /api/v1/orderRecords/mergeVouchers | mergeVouchers\n*OrderRecordResourceApi* | **updateOrderRecord**) | **PUT** /api/v1/orderRecords | updateOrderRecord\n*ProductResourceApi* | **findProductsByVendor** | **GET** /api/v1/products/vendor/{vendorId} | findProductsByVendor\n*ProductResourceApi* | **getAllProducts** | **GET** /api/v2/products | getAllProducts\n*VendorResourceApi* | **getAllVendors** | **GET** /api/v2/vendors | getAllVendors\n*VoucherResourceApi* | **cancelValidation** | **POST** /api/v2/voucher/validate/cancel | V2 Cancel validation for the voucher\n*VoucherResourceApi* | **cancelVoucher** | **POST** /api/v1/voucher/cancel | cancelVoucher\n*VoucherResourceApi* | **convertVoucher** | **POST** /api/v1/voucher/convert | convertVoucher\n*VoucherResourceApi* | **validateVoucher** | **POST** /api/v2/voucher/validate | [V2 Validates voucher which represents single order item or group of them.\n\n\n## Documentation For Authorization\n\n\n## X-Api-Key\n\n- **Type**: API key\n- **API key parameter name**: X-Api-Key\n- **Location**: HTTP header\n\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/BYMdevelopment/passhub-api-client-python", "keywords": "PassHub,SightseeingPass,API Client,API", "license": "", "maintainer": "", "maintainer_email": "", "name": "sightseeingtech-passhub-api", "package_url": "https://pypi.org/project/sightseeingtech-passhub-api/", "platform": "", "project_url": "https://pypi.org/project/sightseeingtech-passhub-api/", "project_urls": { "Homepage": "https://github.com/BYMdevelopment/passhub-api-client-python" }, "release_url": "https://pypi.org/project/sightseeingtech-passhub-api/1.0.0/", "requires_dist": [ "urllib3 (>=1.15)", "six (>=1.10)", "certifi", "python-dateutil" ], "requires_python": "", "summary": "PassHub API Client", "version": "1.0.0" }, "last_serial": 3986484, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "91c0f7634b0b4baf4b95ab9e5c6888da", "sha256": "6559a3d6a11192f63c6ed60aa09805f7571683112c2eed992345b4684ab89b0b" }, "downloads": -1, "filename": "sightseeingtech_passhub_api-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "91c0f7634b0b4baf4b95ab9e5c6888da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 85196, "upload_time": "2018-06-21T17:46:38", "url": "https://files.pythonhosted.org/packages/64/c9/3047204301db3591547058858955cc85d9fb86a9ffb8363d60ef38cdd084/sightseeingtech_passhub_api-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6703458a009570c2624df612fde8b2c1", "sha256": "ec3c666bbac73c31a7a29b1e127aeb9f5db6f85abd7722949f83bdb27ffd0c72" }, "downloads": -1, "filename": "sightseeingtech-passhub-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6703458a009570c2624df612fde8b2c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42153, "upload_time": "2018-06-21T17:46:39", "url": "https://files.pythonhosted.org/packages/92/31/9ac8b72ab7bbafd3720cafb01df2f3158fd084016f09d3a67ced1249725e/sightseeingtech-passhub-api-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "91c0f7634b0b4baf4b95ab9e5c6888da", "sha256": "6559a3d6a11192f63c6ed60aa09805f7571683112c2eed992345b4684ab89b0b" }, "downloads": -1, "filename": "sightseeingtech_passhub_api-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "91c0f7634b0b4baf4b95ab9e5c6888da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 85196, "upload_time": "2018-06-21T17:46:38", "url": "https://files.pythonhosted.org/packages/64/c9/3047204301db3591547058858955cc85d9fb86a9ffb8363d60ef38cdd084/sightseeingtech_passhub_api-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6703458a009570c2624df612fde8b2c1", "sha256": "ec3c666bbac73c31a7a29b1e127aeb9f5db6f85abd7722949f83bdb27ffd0c72" }, "downloads": -1, "filename": "sightseeingtech-passhub-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6703458a009570c2624df612fde8b2c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42153, "upload_time": "2018-06-21T17:46:39", "url": "https://files.pythonhosted.org/packages/92/31/9ac8b72ab7bbafd3720cafb01df2f3158fd084016f09d3a67ced1249725e/sightseeingtech-passhub-api-1.0.0.tar.gz" } ] }