{ "info": { "author": "Thibault Jouannic", "author_email": "thibault@miximum.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# django-nexmo\n\n`django-nexmo` is a tiny Django app to send sms using the Nexmo provider.\n\n## Installation\n\nInstallation using pip is simple:\n\n $ pip install django-nexmo\n\nAdd the `nexmo` app to your installed applications:\n\n INSTALLED_APPS = (\n \u2026\n 'nexmo',\n \u2026\n )\n\n## Configuration\n\nYou need to add a few lines in your `settings.py` file for django-nexmo to work:\n\n NEXMO_USERNAME = 'username'\n NEXMO_PASSWORD = 'password'\n NEXMO_FROM = 'Name or phone'\n\nDid I mention that you need a [Nexmo account](https://www.nexmo.com/)?\nSeems quite obvious to me.\n\n\n## Basic usage\n\nThe `nexmo` apps gives you access to a shortcut to send text messages easily.\n\n from nexmo import send_message\n send_message('+33612345678', 'My sms message body')\n\nIs that all? Yes\u2026 for now.\n\n\n## Advanced usage\n\n`django-nexmo` embeds [libpynexmo by Marco Londero](https://github.com/marcuz/libpynexmo).\nTherefore, you can import and use the `NexmoMessage` class to manually forge\nrequests to the Nexmo API.\n\n from nexmo.libpynexmo.nexmomessage import NexmoMessage\n\n\n params = {\n 'api_key': settings.NEXMO_USERNAME,\n 'api_secret': settings.NEXMO_PASSWORD,\n 'type': 'unicode',\n 'from': settings.NEXMO_FROM,\n 'to': to,\n 'text': message.encode('utf-8'),\n }\n sms = NexmoMessage(params)\n response = sms.send_request()\n\n\n## Handling callbacks\n\nNexmo can call one of your urls to send further details about a text message processing.\n\n`django-nexmo` provides a very basic callback handler that does nothing but logging\nNexmo calls.\n\nIn your main `urls.py` file:\n\n urlpatterns = patterns('',\n \u2026\n url(r'^nexmo/', include('nexmo.urls')),\n \u2026\n )\n\nThis will declare a callback view accessible through the\nhttp://your-site.url/nexmo/callback/ url.\n\nCopy this url and paste it in the \"Callback URL\" section of your \"API settings\"\nsection of your Nexmo.com account.", "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/thibault/django-nexmo", "keywords": null, "license": "WTFPL", "maintainer": null, "maintainer_email": null, "name": "django-nexmo", "package_url": "https://pypi.org/project/django-nexmo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-nexmo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/thibault/django-nexmo" }, "release_url": "https://pypi.org/project/django-nexmo/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple Django app to send text messages using the Nexmo api.", "version": "1.0.1" }, "last_serial": 2344452, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1d029fda999130318be41a6459ded80d", "sha256": "79ec542063c2300b75ebbc12e86c5c67ef81d02873a28740a1ea61dbac6cc6e9" }, "downloads": -1, "filename": "django-nexmo-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1d029fda999130318be41a6459ded80d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8583, "upload_time": "2013-07-01T15:54:58", "url": "https://files.pythonhosted.org/packages/86/6c/1abcaa6994a83686a1108d8186cddb38f1c17739f718be8c603e7dd842f0/django-nexmo-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9f186b0635c9166c00948bd86e64fa86", "sha256": "f17bdf046326725332a0e38cde5732326183f96c9bb6953c92a640f33b898e87" }, "downloads": -1, "filename": "django-nexmo-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9f186b0635c9166c00948bd86e64fa86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8582, "upload_time": "2013-07-03T09:49:44", "url": "https://files.pythonhosted.org/packages/3d/0c/dc8f2a596c71cf523f1cdc546c4172c94c5c267db8f5bf35954b34fedffd/django-nexmo-1.0.1.tar.gz" } ], "2.0.0a1": [ { "comment_text": "", "digests": { "md5": "f0ff4effb18ea01355f2b9d097786ba2", "sha256": "c6104b34bdface3a00416cc474d78b236a4db641ea4b7bf0825f0e1115203d9f" }, "downloads": -1, "filename": "django-nexmo-2.0.0a1.tar.gz", "has_sig": false, "md5_digest": "f0ff4effb18ea01355f2b9d097786ba2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6296, "upload_time": "2016-09-15T15:03:06", "url": "https://files.pythonhosted.org/packages/96/e3/0b36772a58331f8ea4407617bd056fcae143c28500dd21faebc9ebe8cead/django-nexmo-2.0.0a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f186b0635c9166c00948bd86e64fa86", "sha256": "f17bdf046326725332a0e38cde5732326183f96c9bb6953c92a640f33b898e87" }, "downloads": -1, "filename": "django-nexmo-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9f186b0635c9166c00948bd86e64fa86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8582, "upload_time": "2013-07-03T09:49:44", "url": "https://files.pythonhosted.org/packages/3d/0c/dc8f2a596c71cf523f1cdc546c4172c94c5c267db8f5bf35954b34fedffd/django-nexmo-1.0.1.tar.gz" } ] }