{ "info": { "author": "Alexander Shchapov", "author_email": "sasha@imedicare.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5" ], "description": "python-callfire\n===============\n.. image:: https://travis-ci.org/iMedicare/python-callfire.svg?branch=master\n :target: https://travis-ci.org/iMedicare/python-callfire\n\nThin wrapper in Python which implements CallFire v2 interface definitions based on Swagger specification.\n\nUsage\n-----\nPython method names follow `CallFire's API `_.\nWrapper does not introduce any additional complexity or conventions above those defined in original API,\nwhich makes usage pretty straightforward:\n\n.. code-block:: python\n\n >>> from callfire import CallFireAPI\n >>> api = CallFireAPI('', '')\n\n >>> api.get_account().json()\n {\n u'email': u'your-email@your-domain.com',\n u'firstName': u'John',\n u'id': 700321776,\n u'lastName': u'Smith',\n u'name': u'Metacortex',\n u'permissions': [u'ACCOUNT_HOLDER']\n }\n\n >>> text = dict(phoneNumber='13408887345', message='Hi!')\n >>> api.send_texts(body=[text]).json()\n {\n u'items': [{\n u'batchId': 11428003374,\n u'campaignId': 60000313259,\n u'contact': {\n u'id': 152100378045,\n u'properties': {\n u'UNDEFINED': u'13471521003'\n }\n },\n u'created': 1470222349000,\n u'finalTextResult': u'SENT',\n u'fromNumber': u'67076',\n u'id': 1038052003407,\n u'inbound': False,\n u'message': u'Hi!',\n u'modified': 1470222348000,\n u'records': [{\n u'billedAmount': 1.0,\n u'finishTime': 1470222349000,\n u'id': 579287900394,\n u'message': u'Hi!',\n u'textResult': u'SENT'\n }],\n u'state': u'FINISHED',\n u'toNumber': u'13408887345'\n }]\n }\n\n >>> broadcast = dict(\n fromNumber='13471521003',\n labels=['via-api'],\n name='Test voice broadcast'),\n answeringMachineConfig='AM_AND_LIVE',\n recipients=[dict(phoneNumber='(347) 1521003')],\n sounds=dict(\n liveSoundText='Voice message',\n machineSoundText='Voice message'\n )\n )\n >>> api.create_call_broadcast(query=dict(start=True), body=broadcast).json()\n {u'id': 13750937003}\n\n >>> api.get_call_broadcast(13750937003).json()\n {\n u'id': 13750937003,\n ...\n u'status': u'FINISHED'\n }\n\n\nError Handling\n--------------\nWhenever low level exception occurs it is wrapped and re-raised as `CallFireError`,\nwhile original traceback preserved and displayed and original exception is also\navailable for inspection under `wrapped_exc` attribute.\n\nDocumentation\n-------------\nGenerated python methods do contain docstrings with described query and body params.\nOfficial API documentation is available at `developers.callfire.com `_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iMedicare/python-callfire", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-callfire", "package_url": "https://pypi.org/project/python-callfire/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-callfire/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/iMedicare/python-callfire" }, "release_url": "https://pypi.org/project/python-callfire/0.10.0/", "requires_dist": null, "requires_python": null, "summary": "CallFire API thin wrapper.", "version": "0.10.0" }, "last_serial": 2467020, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "8402c334ba50ef82866b18f40110d693", "sha256": "5fb678b7b2458029a64ba1f088c420075a8c42206f28b2e7869bbc0448b60466" }, "downloads": -1, "filename": "python-callfire-0.10.0.tar.gz", "has_sig": false, "md5_digest": "8402c334ba50ef82866b18f40110d693", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15959, "upload_time": "2016-11-17T19:21:00", "url": "https://files.pythonhosted.org/packages/c6/4f/ba8bcfaddca3dcabc35f1e7261ee9c2f89ebae6e54bbcdcb3142869630e4/python-callfire-0.10.0.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "90128305d4b893b7ab5b13b7450fa391", "sha256": "64985828d28098c51231dbac1574bda9770b4c5fa66e189cb530415de4eb1ba7" }, "downloads": -1, "filename": "python-callfire-0.9.6.tar.gz", "has_sig": false, "md5_digest": "90128305d4b893b7ab5b13b7450fa391", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14917, "upload_time": "2016-08-18T09:20:16", "url": "https://files.pythonhosted.org/packages/a9/4a/cfc032f3cf0d21ef7d3ddf5e07eaee71bc2ae7f93aa3bb0519e2b9187a7e/python-callfire-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8402c334ba50ef82866b18f40110d693", "sha256": "5fb678b7b2458029a64ba1f088c420075a8c42206f28b2e7869bbc0448b60466" }, "downloads": -1, "filename": "python-callfire-0.10.0.tar.gz", "has_sig": false, "md5_digest": "8402c334ba50ef82866b18f40110d693", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15959, "upload_time": "2016-11-17T19:21:00", "url": "https://files.pythonhosted.org/packages/c6/4f/ba8bcfaddca3dcabc35f1e7261ee9c2f89ebae6e54bbcdcb3142869630e4/python-callfire-0.10.0.tar.gz" } ] }