{ "info": { "author": "Momentum Teknoloji AS", "author_email": "info@mtas.com.tr", "bugtrack_url": null, "classifiers": [], "description": ".. figure:: https://mtas.com.tr/wp-content/uploads/2016/03/logoMTAS.png\n :alt: Momentum AS Logo\n\n Momentum Teknoloji AS\n\npyMomentum\n==========\n\nThis repository contains python libraries developed and used by Momentum\nAS. You can find detailed information below. Please feel free to\ncontribute or ask. More libraries and documentation will be here soon.\n\n--------------\n\nAvailable Libraries\n-------------------\n\n- **sms** is a library for sending text messages using provider API's.\n- **Providers** currently available are:\n\n - Sanal Santral API V1.0.0\n - MutluCell\n\n--------------\n\nInstallation\n------------\n\nTo install latest stable version of our library, simply run:\n\n::\n\n pip install pyMomentum\n\nIf you installed before, to update simply run:\n\n::\n\n pip install pyMomentum --upgrade\n\nTo install library from GitHub master branch:\n\n::\n\n pip install git+https://github.com/MomentumAS/pyMomentum.git\n\nTo update from GitHub master branch:\n\n::\n\n pip install git+https://github.com/MomentumAS/pyMomentum.git --upgrade\n\nsms\n~~~\n\nYou should create a provider with its parameters and then you can simply\nuse **sms.SMS()**\n\nIf you are located in Turkey and sending advertorial texts to end users,\nyou should provide a opt-out option. Please learn your local regulations\nabout sending short messages.\n\nAvailable providers in the library are **Sanal Santral** and\n**MutluCell** at the moment. Here is an example usage:\n\n.. code:: python\n\n from pyMomentum.sms import sms\n from pyMomentum.sms.providers.sanalsantral import SanalSantralSMSProvider\n\n # create a provider object, username is your username and password is API key. smsHeader should be one of your registered headers (alphanumerical from information of SMS)\n provider = SanalSantralSMSProvider(username=\"test\", password=\"test\", smsHeader=\"test\")\n # create an sms object with the provider above\n mysms = sms.SMS(provider)\n # send an sms\n sms_id = mysms.send(smsNumber=\"123456789\", smsText=\"Message Text\")\n\n #>>> sms_id\n #{'message_id': 77300600}\n\n # sms_id is numerical value that you can track your send report\n # you can store this id in a database so you can reach send report later\n\n mysms.status(message_id=sms_id['message_id'])\n\n # this will return a list like:\n # {'result_detail': 'Pending', 'results': [{'status_detail': 'Send report operation started', 'status': '25', 'number': '90500000000'}], 'result_code': '5'}\n # you should expect a pending status a bit later\n # {'results': [{'status_detail': 'Send report operation started', 'number': '90500000000', 'status': '25'}], 'result_detail': 'Pending', 'result_code': '5'}\n # and you should expect success message as soon as your message received\n # {'result_code': '9', 'results': [{'status_detail': 'Send report operation completed', 'status': '23', 'number': '90500000000'}], 'result_detail': 'Success'}\n\n--------------\n\nMIT License\n\nCopyright (c) 2017 Momentum Teknoloji Anonim Sirketi\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", "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/MomentumAS/pyMomentum", "keywords": "momentum,library,sms", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyMomentum", "package_url": "https://pypi.org/project/pyMomentum/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyMomentum/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/MomentumAS/pyMomentum" }, "release_url": "https://pypi.org/project/pyMomentum/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Python libraries developed by Momentum", "version": "0.1.4" }, "last_serial": 2761318, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "b89016e7a4b0b7cbfac00ef9e4be2936", "sha256": "d1b0a7e50ff96b98df2a58681bdf8df26b3b59c50f21528e195ad85221330037" }, "downloads": -1, "filename": "pyMomentum-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b89016e7a4b0b7cbfac00ef9e4be2936", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2017-04-03T20:54:05", "url": "https://files.pythonhosted.org/packages/7b/1d/65dce22f3fd2472dca5d3a1bd1daac96018ce87a30186ad360e8039075d2/pyMomentum-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "bf0d0def7d677ad539b93e0b822fbb4f", "sha256": "051e9fab0a79608357054e697b61108e4fd0447e4b936d9bd8d8db69ec626419" }, "downloads": -1, "filename": "pyMomentum-0.1.2.tar.gz", "has_sig": false, "md5_digest": "bf0d0def7d677ad539b93e0b822fbb4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4696, "upload_time": "2017-04-03T21:09:56", "url": "https://files.pythonhosted.org/packages/e9/c9/8e16d4d98afcb83d50723011e2f87233ee47035f22bc3d40d93c63c2fe24/pyMomentum-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "db6e993e86d0951d48e04331ea6c2c45", "sha256": "3d8601b3fb8a85da7ffdaa16945158deaeaa2d94f12c6adcc285ed0e687bae7d" }, "downloads": -1, "filename": "pyMomentum-0.1.3.tar.gz", "has_sig": false, "md5_digest": "db6e993e86d0951d48e04331ea6c2c45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4859, "upload_time": "2017-04-03T21:22:41", "url": "https://files.pythonhosted.org/packages/1d/9d/f2f9643bee952382178752e733cf46988ae105b0742a4b82f62f5c33df9f/pyMomentum-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "699e2094518f216e4ca14f2b6e97188c", "sha256": "9a80986591fdb7cae5a9f375102f8070bd5b2d36c4845fdc5bb61d10870a3854" }, "downloads": -1, "filename": "pyMomentum-0.1.4.tar.gz", "has_sig": false, "md5_digest": "699e2094518f216e4ca14f2b6e97188c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5965, "upload_time": "2017-04-07T21:47:08", "url": "https://files.pythonhosted.org/packages/d5/4e/4339bccea068dfb38b685c4996ec37b85d93d60797102ff6a91b729fc29d/pyMomentum-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "699e2094518f216e4ca14f2b6e97188c", "sha256": "9a80986591fdb7cae5a9f375102f8070bd5b2d36c4845fdc5bb61d10870a3854" }, "downloads": -1, "filename": "pyMomentum-0.1.4.tar.gz", "has_sig": false, "md5_digest": "699e2094518f216e4ca14f2b6e97188c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5965, "upload_time": "2017-04-07T21:47:08", "url": "https://files.pythonhosted.org/packages/d5/4e/4339bccea068dfb38b685c4996ec37b85d93d60797102ff6a91b729fc29d/pyMomentum-0.1.4.tar.gz" } ] }