{ "info": { "author": "Hugo Brilhante", "author_email": "hugobrilhante@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "======================\r\nDjango GCM Android iOS\r\n======================\r\n\r\ndjango-gcm-android-ios is a simple Django app to send a message using GCM HTTP connection server protocol.\r\n\r\nDetailed documentation is in the \"docs\" directory.\r\n\r\n.. image:: https://travis-ci.org/hugobrilhante/django-gcm-android-ios.svg\r\n :target: https://travis-ci.org/hugobrilhante/django-gcm-android-ios\r\n\r\n.. image:: https://coveralls.io/repos/hugobrilhante/django-gcm-android-ios/badge.svg?branch=master&service=github\r\n :target: https://coveralls.io/github/hugobrilhante/django-gcm-android-ios?branch=master\r\n\r\n.. image:: https://readthedocs.org/projects/django-gcm-android-ios/badge/?version=latest\r\n :target: http://django-gcm-android-ios.readthedocs.org/en/latest/\r\n :alt: Documentation Status\r\n\r\n.. image:: https://img.shields.io/pypi/status/django-gcm-android-ios.svg\r\n :target: https://pypi.python.org/pypi/django-gcm-android-ios\r\n\r\n.. image:: https://img.shields.io/pypi/dm/django-gcm-android-ios.svg\r\n :target: https://pypi.python.org/pypi/django-gcm-android-ios/1.0.0#downloads\r\n\r\n.. image:: https://img.shields.io/pypi/l/django-gcm-android-ios.svg\r\n :target: https://github.com/hugobrilhante/django-gcm-android-ios/blob/master/LICENSE\r\n\r\n.. image:: https://img.shields.io/github/release/hugobrilhante/django-gcm-android-ios.svg\r\n :target: https://github.com/hugobrilhante/django-gcm-android-ios/releases/tag/1.0.0\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/django-gcm-android-ios.svg\r\n :target: https://pypi.python.org/pypi/django-gcm-android-ios\r\n\r\n\r\n\r\nQuick start\r\n-----------\r\n\r\n1. Install django-gcm-android-ios::\r\n\r\n pip install django-gcm-android-ios\r\n\r\n2. Add \"gcm\" to your INSTALLED_APPS setting like this::\r\n\r\n INSTALLED_APPS = (\r\n ...\r\n 'gcm',\r\n )\r\n\r\n3. Add in setting api keys like this::\r\n\r\n GCM_DEVICE_MODEL = \"DeviceModel\" # default gcm.Device\r\n GCM_IOS_APIKEY = \"IOS_APIKEY\"\r\n GCM_ANDROID_APIKEY = \"ANDROID_APIKEY\"\r\n\r\n\r\n4. Include the gcm routers in your project urls.py like this::\r\n\r\n from gcm.routers import router\r\n url(r'api/', include(router.urls))\r\n\r\n5. Run `python manage.py migrate` to create the device models\r\n\r\n\r\n6. To register device::\r\n\r\n curl -X POST -H \"Content-Type: application/json\" -H \"Authorization: \"\r\n -d '{\r\n \"dev_id\": \"Device id\",\r\n \"dev_type\": \"ANDROID or IOS\",\r\n \"reg_id\": \"Register id\"\r\n }' 'http://localhost:8001/api/devices'\r\n\r\n7. To unregister device::\r\n\r\n curl -X DELETE -H \"Content-Type: application/json\" -H \"Authorization: \" \r\n 'http://localhost:8001/api/devices/id_device'", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/hugobrilhante/django-gcm-android-ios/archive/1.0.0.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hugobrilhante/django-gcm-android-ios", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-gcm-android-ios", "package_url": "https://pypi.org/project/django-gcm-android-ios/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-gcm-android-ios/", "project_urls": { "Download": "https://github.com/hugobrilhante/django-gcm-android-ios/archive/1.0.0.zip", "Homepage": "https://github.com/hugobrilhante/django-gcm-android-ios" }, "release_url": "https://pypi.org/project/django-gcm-android-ios/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Send a message using GCM HTTP connection server protocol", "version": "1.0.0" }, "last_serial": 1631763, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e47c51e5c9f17acb90ff4064cf1ae4e5", "sha256": "29b3542d529c02373bd9ec7bb327a10f284143304a8a94c21104d5a08db18b30" }, "downloads": -1, "filename": "django_gcm_android_ios-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e47c51e5c9f17acb90ff4064cf1ae4e5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11058, "upload_time": "2015-07-11T22:01:05", "url": "https://files.pythonhosted.org/packages/fe/c3/38692405297fb38c49df14809f4258c18c8875cabdc72b9a63ff1f8e163f/django_gcm_android_ios-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d616badcbacd2920c532d5c7cba7cb", "sha256": "90486cc4232a554430212a373d33c4be82d2b4bd14986241c887ab2ed9c11169" }, "downloads": -1, "filename": "django-gcm-android-ios-1.0.0.tar.gz", "has_sig": false, "md5_digest": "23d616badcbacd2920c532d5c7cba7cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24199, "upload_time": "2015-07-11T22:01:00", "url": "https://files.pythonhosted.org/packages/ef/4b/e145e4e7f8ac1e1609e23a14254f690021ce87ff4fd02a6dc42604741e21/django-gcm-android-ios-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e47c51e5c9f17acb90ff4064cf1ae4e5", "sha256": "29b3542d529c02373bd9ec7bb327a10f284143304a8a94c21104d5a08db18b30" }, "downloads": -1, "filename": "django_gcm_android_ios-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e47c51e5c9f17acb90ff4064cf1ae4e5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11058, "upload_time": "2015-07-11T22:01:05", "url": "https://files.pythonhosted.org/packages/fe/c3/38692405297fb38c49df14809f4258c18c8875cabdc72b9a63ff1f8e163f/django_gcm_android_ios-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d616badcbacd2920c532d5c7cba7cb", "sha256": "90486cc4232a554430212a373d33c4be82d2b4bd14986241c887ab2ed9c11169" }, "downloads": -1, "filename": "django-gcm-android-ios-1.0.0.tar.gz", "has_sig": false, "md5_digest": "23d616badcbacd2920c532d5c7cba7cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24199, "upload_time": "2015-07-11T22:01:00", "url": "https://files.pythonhosted.org/packages/ef/4b/e145e4e7f8ac1e1609e23a14254f690021ce87ff4fd02a6dc42604741e21/django-gcm-android-ios-1.0.0.tar.gz" } ] }