{ "info": { "author": "MessageBird", "author_email": "support@messagebird.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "MessageBird's REST API for Python\n=================================\nThis repository contains the open source Python client for MessageBird's REST API. Documentation can be found at: https://developers.messagebird.com/.\n\n[![Build Status](https://travis-ci.org/messagebird/python-rest-api.svg?branch=master)](https://travis-ci.org/messagebird/python-rest-api)\n\nRequirements\n------------\n- [Sign up](https://www.messagebird.com/en/signup) for a free MessageBird account\n- Create a new access key in the developers sections\n- An application written in Python (tested with Python 2.7 and Python 3.4)\n\nInstallation\n------------\nThe easiest way to install the messagebird package is either via pip:\n\n```\n$ pip install messagebird\n```\n\nor manually by downloading the source and run the setup.py script:\n\n```\n$ python setup.py install\n```\n\nExamples\n--------\nWe have put some self-explanatory examples in the [examples](https://github.com/messagebird/python-rest-api/tree/master/examples) directory, but here is a quick example on how to get started. Assuming the installation was successful, you can import the messagebird package like this:\n\n```python\nimport messagebird\n```\n\nThen, create an instance of **messagebird.Client**:\n\n```python\nclient = messagebird.Client('test_gshuPaZoeEG6ovbc8M79w0QyM')\n```\n\nNow you can query the API for information or send a request. For example, if we want to request our balance information you'd do something like this:\n\n```python\ntry:\n # Fetch the Balance object.\n balance = client.balance()\n\n # Print the object information.\n print('Your balance:\\n')\n print(' amount : %d' % balance.amount)\n print(' type : %s' % balance.type)\n print(' payment : %s\\n' % balance.payment)\n\nexcept messagebird.client.ErrorException as e:\n print('Error:\\n')\n\n for error in e.errors:\n print(' code : %d' % error.code)\n print(' description : %s' % error.description)\n print(' parameter : %s\\n' % error.parameter)\n\n```\n\nThis will give you something like:\n```shell\n$ python example.py\nYour balance:\n\n amount : 9 \n type : credits\n payment : prepaid\n```\n\nPlease see the other examples for a complete overview of all the available API calls.\n\nDocumentation\n-------------\nComplete documentation, instructions, and examples are available at:\n[https://developers.messagebird.com/](https://developers.messagebird.com/).\n\nLicense\n-------\nThe MessageBird REST Client for Python is licensed under [The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause). Copyright (c) 2014, MessageBird\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/messagebird/python-rest-api/tarball/1.4.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/messagebird/python-rest-api", "keywords": "messagebird,sms", "license": "BSD-2-Clause", "maintainer": "", "maintainer_email": "", "name": "messagebird", "package_url": "https://pypi.org/project/messagebird/", "platform": "", "project_url": "https://pypi.org/project/messagebird/", "project_urls": { "Download": "https://github.com/messagebird/python-rest-api/tarball/1.4.1", "Homepage": "https://github.com/messagebird/python-rest-api" }, "release_url": "https://pypi.org/project/messagebird/1.4.1/", "requires_dist": [ "requests (>=2.4.1)" ], "requires_python": "", "summary": "MessageBird's REST API", "version": "1.4.1" }, "last_serial": 5675806, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d8bbe1b3687c8f933e52ebb5cf05e257", "sha256": "fb58cf4b3ce6e1fe1dd2a438f945c33a4a5abaa97f0cc0f7a8a729f8ea44ad01" }, "downloads": -1, "filename": "messagebird-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d8bbe1b3687c8f933e52ebb5cf05e257", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2718, "upload_time": "2014-09-16T10:42:36", "url": "https://files.pythonhosted.org/packages/9c/f5/0185e60efd39cd4b90538417701d8add3eae0e5a77c619038f90d9e52e91/messagebird-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "dd79e8b9a9257a9d23b06056187dbb3a", "sha256": "dd12dffc6e215958cb7d491385c719317e70d83a070d3ded59a19a0c139660f0" }, "downloads": -1, "filename": "messagebird-1.0.1.tar.gz", "has_sig": false, "md5_digest": "dd79e8b9a9257a9d23b06056187dbb3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2735, "upload_time": "2015-06-11T11:45:12", "url": "https://files.pythonhosted.org/packages/cb/d8/614896fe93f62b19a11722e59f031713dec63741dc16e4f7dc547cea7b3f/messagebird-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "b85f31981a03bccf4e1fc633b040494a", "sha256": "4dc5fc61e08e2af463bdf2c33d4a72e73cd7c29739b204218850946c5a524016" }, "downloads": -1, "filename": "messagebird-1.0.2.tar.gz", "has_sig": false, "md5_digest": "b85f31981a03bccf4e1fc633b040494a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2735, "upload_time": "2015-07-30T09:04:50", "url": "https://files.pythonhosted.org/packages/21/69/719cc839b5bc2cfae76b312b92bf3a331c441427760edfa69cad0050dfc4/messagebird-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "1575951ac2f4a2eba0c1449ff2f6ba01", "sha256": "b117efdc38c80fa744a6f14c691cd10229f685d40afaaea817bbabcdb33c0338" }, "downloads": -1, "filename": "messagebird-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1575951ac2f4a2eba0c1449ff2f6ba01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2818, "upload_time": "2015-10-15T07:14:29", "url": "https://files.pythonhosted.org/packages/98/08/4be203411b36f17b80c0a2935cf2213ff9433f4e57c3cab6a44144aeeaed/messagebird-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "9dc48f75359bb435693f1396715890c7", "sha256": "167edee40a30683ffbabaf4a2879f5fc979bb9a7cb7574d2adc711ae882e9ca8" }, "downloads": -1, "filename": "messagebird-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9dc48f75359bb435693f1396715890c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3151, "upload_time": "2015-12-28T16:30:13", "url": "https://files.pythonhosted.org/packages/e2/67/80e9e33b7a2374397eb1e3dbe8881ed9c27df5658ea0d6dadc43a836a3c1/messagebird-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "82f7783d02a9301fc3ed2ad520e2bfe1", "sha256": "7feb21434dbee1437989d9d5fd9d1c4cf1fa48c92bc0a8c06c22b3890efd47e2" }, "downloads": -1, "filename": "messagebird-1.1.1.tar.gz", "has_sig": false, "md5_digest": "82f7783d02a9301fc3ed2ad520e2bfe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3176, "upload_time": "2016-02-01T14:34:44", "url": "https://files.pythonhosted.org/packages/43/a3/6f11204e6efc3a3371879477f5e0756100812df8d66326b5fb7cab873263/messagebird-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "e2bf481ac4dc2c04a32513e623a0a530", "sha256": "6af67edf85ea91e73db117d7d79fdffcc6e616431f6032bc37a4635c4ce8caa2" }, "downloads": -1, "filename": "messagebird-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e2bf481ac4dc2c04a32513e623a0a530", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3396, "upload_time": "2016-03-30T09:16:07", "url": "https://files.pythonhosted.org/packages/4d/9f/e52ed22f65c507a0cd15cbc66e5dde7148efbc2582a7aa6a3ac9a9433b43/messagebird-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "3a52bbe63f5917da4698f7a96ef01fa9", "sha256": "69fb9392d694c0bffcaaf5e2fe8befcf445f4c2b4f214805f882c6302d0d2f01" }, "downloads": -1, "filename": "messagebird-1.2.1.tar.gz", "has_sig": false, "md5_digest": "3a52bbe63f5917da4698f7a96ef01fa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4350, "upload_time": "2017-11-29T12:56:59", "url": "https://files.pythonhosted.org/packages/cc/00/f270bc6d0baa69caad36e9451ab37324514fdf780a3110cc323bb0682028/messagebird-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "40739d733371dd49db9a3e625fb01586", "sha256": "d823300fe47f6f18ae9ebe3fadce4fc6807b55b88b1821c209dd7890a58199d3" }, "downloads": -1, "filename": "messagebird-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40739d733371dd49db9a3e625fb01586", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10305, "upload_time": "2018-11-02T10:52:01", "url": "https://files.pythonhosted.org/packages/1c/b8/d0b3eadd46efb49224ee61049ba14412273f3129583c9391e949cf571e8f/messagebird-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e8db0587b914bb20d53e55da427f9ab", "sha256": "4345ab127d7ece4d6b65533bdf4352507ffaaddcda90a9374980731a302413b6" }, "downloads": -1, "filename": "messagebird-1.3.0.tar.gz", "has_sig": false, "md5_digest": "0e8db0587b914bb20d53e55da427f9ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6315, "upload_time": "2018-11-02T10:52:03", "url": "https://files.pythonhosted.org/packages/54/fd/c8a036e5f76bbe33478236b8d03293ed26ab03ecfccf620b9506c6416856/messagebird-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "665cef571e8119decf977aaaa4a46480", "sha256": "df56ff0482171a4ad4fed7c87f36066db1bd361a05fa949df74abe426b37ab82" }, "downloads": -1, "filename": "messagebird-1.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "665cef571e8119decf977aaaa4a46480", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11347, "upload_time": "2018-11-02T11:19:01", "url": "https://files.pythonhosted.org/packages/7b/fc/45ef5d0cae0a6023183c1dc18055f65425c783c0416ba6ab1d8aa2910f43/messagebird-1.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "11d0fbddbfabf4c45d1fdffbbb966eaf", "sha256": "298e294575e2ce1780de5ae569e8d6bf93ec26b3190536588b34a67495313091" }, "downloads": -1, "filename": "messagebird-1.3.1.tar.gz", "has_sig": false, "md5_digest": "11d0fbddbfabf4c45d1fdffbbb966eaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7764, "upload_time": "2018-11-02T11:19:02", "url": "https://files.pythonhosted.org/packages/a6/64/5fd16a8d71d96ebf35c935c3a3e05e8d6472362b394c953d425be3f47ba5/messagebird-1.3.1.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "262e2e5da84020af46623d79d5036afe", "sha256": "0518d333ba79afdff31ac0b63891a09db14ebc5c6df462ca3662cbe9259b68b4" }, "downloads": -1, "filename": "messagebird-1.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "262e2e5da84020af46623d79d5036afe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16207, "upload_time": "2019-06-19T10:57:44", "url": "https://files.pythonhosted.org/packages/be/fb/0e9bbe5b88b6837f5d471aaefecac17b991dab3fdef7a52dfa950f3f270a/messagebird-1.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a08ee0962c889f304c48b266418bdf3", "sha256": "45c9dbd52584c5571d14cf0a99976bee8c7a8f713cc5302590a821b3a90bcee1" }, "downloads": -1, "filename": "messagebird-1.4.1.tar.gz", "has_sig": false, "md5_digest": "4a08ee0962c889f304c48b266418bdf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10671, "upload_time": "2019-06-19T10:57:45", "url": "https://files.pythonhosted.org/packages/e7/8a/b92f966868e81f6a9aff355781a465e24bd5b9fa0fe2526a68abec7ed980/messagebird-1.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "262e2e5da84020af46623d79d5036afe", "sha256": "0518d333ba79afdff31ac0b63891a09db14ebc5c6df462ca3662cbe9259b68b4" }, "downloads": -1, "filename": "messagebird-1.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "262e2e5da84020af46623d79d5036afe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16207, "upload_time": "2019-06-19T10:57:44", "url": "https://files.pythonhosted.org/packages/be/fb/0e9bbe5b88b6837f5d471aaefecac17b991dab3fdef7a52dfa950f3f270a/messagebird-1.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a08ee0962c889f304c48b266418bdf3", "sha256": "45c9dbd52584c5571d14cf0a99976bee8c7a8f713cc5302590a821b3a90bcee1" }, "downloads": -1, "filename": "messagebird-1.4.1.tar.gz", "has_sig": false, "md5_digest": "4a08ee0962c889f304c48b266418bdf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10671, "upload_time": "2019-06-19T10:57:45", "url": "https://files.pythonhosted.org/packages/e7/8a/b92f966868e81f6a9aff355781a465e24bd5b9fa0fe2526a68abec7ed980/messagebird-1.4.1.tar.gz" } ] }