{ "info": { "author": "Jayden Windle", "author_email": "jaydenwindle@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# giftbit-python\n\nA Python SDK for GiftBit's API.\n\n## Installation\n```bash\n$ pip install giftbit\n```\n\n## Getting Started \n\n### API Credentials\nThe `GiftbitClient` needs your Giftbit credentials. You can pass them into the constructor\nor use the environment variable `GIFTBIT_API_KEY`.\n```python\nfrom giftbit import GiftbitClient\n\nclient = GiftbitClient(api_key=\"\")\n\n# or using the environment variable\nclient = GiftbitClient()\n```\n\nBy default, the `GiftbitClient` uses Giftbit's testbed API. To use the production API server, do the following: \n```python\nfrom giftbit import GiftbitClient, \n\nclient = GiftbitClient(testbed=False)\n```\n\nYou can check to see if the client is configured correctly by using the ping method\n```python\nfrom giftbit import GiftbitClient, \n\nclient = GiftbitClient(testbed=False)\n\nresult = client.ping()\n\nprint(result)\n```\n\n## Brands \n\n### List Brands \n\n```python\nfrom giftbit import GiftbitClient, \n\nclient = GiftbitClient()\n\nresult = client.list_brands()\n\nfor brand in result['brands']:\n print(brand['name'])\n```\n\n### Get Individual Brand\n\n```python\nfrom giftbit import GiftbitClient, \n\nclient = GiftbitClient()\n\nresult = client.get_brand('amazonus')\n\nprint(result['brand'])\n```\n\n## Regions \nNot implemented yet\n\n## Campaigns \nNot implemented yet\n\n## Funds \nNot implemented yet\n\n## Gifts \nNot implemented yet\n\n## Links \nNot implemented yet\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/jaydenwindle/giftbit-python/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jaydenwindle/giftbit-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "giftbit", "package_url": "https://pypi.org/project/giftbit/", "platform": "", "project_url": "https://pypi.org/project/giftbit/", "project_urls": { "Download": "https://github.com/jaydenwindle/giftbit-python/archive/0.1.tar.gz", "Homepage": "https://github.com/jaydenwindle/giftbit-python" }, "release_url": "https://pypi.org/project/giftbit/0.1/", "requires_dist": null, "requires_python": "", "summary": "A Python SDK for GiftBit's API", "version": "0.1" }, "last_serial": 3937912, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "89199cd3cc5a413295fc3b9232eafb81", "sha256": "830109652c51ea416ac1c88aab049734e3bfe67b2c4b4d8d59e4aabdb71c2dea" }, "downloads": -1, "filename": "giftbit-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "89199cd3cc5a413295fc3b9232eafb81", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3908, "upload_time": "2018-06-07T00:46:03", "url": "https://files.pythonhosted.org/packages/5a/d0/1151701cec682bbcca8dd14c5617a8525673e81f628c93fe9f237b155e40/giftbit-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "592e2763dec86347f421ece2e04c7a74", "sha256": "577a10e8c8ad0c365ca83a91af2f255ba34b8a425b48c14c4dde1f61b444f075" }, "downloads": -1, "filename": "giftbit-0.1.tar.gz", "has_sig": false, "md5_digest": "592e2763dec86347f421ece2e04c7a74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3099, "upload_time": "2018-06-07T00:46:05", "url": "https://files.pythonhosted.org/packages/a6/af/431bac459c35f5e3c1efd69e24296b4d7d3c30e6390d7f9d16ca800f4f58/giftbit-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89199cd3cc5a413295fc3b9232eafb81", "sha256": "830109652c51ea416ac1c88aab049734e3bfe67b2c4b4d8d59e4aabdb71c2dea" }, "downloads": -1, "filename": "giftbit-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "89199cd3cc5a413295fc3b9232eafb81", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3908, "upload_time": "2018-06-07T00:46:03", "url": "https://files.pythonhosted.org/packages/5a/d0/1151701cec682bbcca8dd14c5617a8525673e81f628c93fe9f237b155e40/giftbit-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "592e2763dec86347f421ece2e04c7a74", "sha256": "577a10e8c8ad0c365ca83a91af2f255ba34b8a425b48c14c4dde1f61b444f075" }, "downloads": -1, "filename": "giftbit-0.1.tar.gz", "has_sig": false, "md5_digest": "592e2763dec86347f421ece2e04c7a74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3099, "upload_time": "2018-06-07T00:46:05", "url": "https://files.pythonhosted.org/packages/a6/af/431bac459c35f5e3c1efd69e24296b4d7d3c30e6390d7f9d16ca800f4f58/giftbit-0.1.tar.gz" } ] }