{ "info": { "author": "http://www.4simple.org", "author_email": "support@4simple.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development" ], "description": "SMS Python API Client ( https://easysms.4simple.org )\n-----------------------------------------------------\n\nThis lib allow easily add SMS text messages to your python applications. Just create an account in\nhttps://easysms.4simple.org for obtain your API credential.\nCode Examples ::\n\n # Step #1 is import required API client class\n from sms_api import SMS_Easy\n\n # Step #2 is create an API client object using credential obtained from https://easysms.4simple.org/user/panel/\n api_obj = SMS_Easy(user_id=21461, auth_token='39fecac595c24h34g35iu451a')\n\n\n ##########################################################################\n # HOW SEND AN SMS TEXT MESSAGE\n ##########################################################################\n\n # Sending an SMS in just one line\n result = api_obj.send_sms(to=\"1525315673\", body=\"Hello Testing SMS API\")\n\n pid = -1\n # Optionally, we can verify if SMS was accepted without errors.\n if result.get(\"success\") == \"ok\":\n print \"SMS message was processed successfully. SMS processing id(pid) is: %s\" % result.get(\"pid\")\n pid = result.get(\"pid\")\n elif \"error\" in result:\n print \"Error while try to send SMS due to: %s\" % result.get(\"error\")\n\n\n ##########################################################################\n # HOW CHECK ACCOUNT BALANCE\n ##########################################################################\n\n # Just call function get_account_balance\n result = api_obj.get_account_balance()\n\n if isinstance(result, dict) and \"error\" in result:\n print \"Error while try get account balance due to: %s\" % result.get(\"error\")\n else:\n print \"Your account balance is: %s\" % result\n\n\n ##########################################################################\n # HOW CHECK SMS PROCESSING STATUS\n ##########################################################################\n\n # Using the processing id (pid) returned when the SMS message was sent, just call this function.\n result = api_obj.get_sms_status(pid)\n\n if isinstance(result, dict) and \"error\" in result:\n print \"Error while try get SMS processing status for pid %s, due to: %s\" % (pid, result.get(\"error\"))\n else:\n print \"SMS processing status for pid %s is %s\" % (pid, result.get(\"status\"))", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/smr-team/easy_sms_python", "keywords": "sms,sms easy,sms api", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "sms-api", "package_url": "https://pypi.org/project/sms-api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sms-api/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/smr-team/easy_sms_python" }, "release_url": "https://pypi.org/project/sms-api/1.2.0/", "requires_dist": null, "requires_python": null, "summary": "SMS API Client, send easy SMS text messages using https://easysms.4simple.org service.", "version": "1.2.0" }, "last_serial": 1964670, "releases": { "1.0.0": [], "1.2.0": [ { "comment_text": "built for Windows-8", "digests": { "md5": "c84ab9bd77207463b5d0c27163da347c", "sha256": "0c9ea637af531fd1777dad79e2b79801433ef09b1fdef484a4521eeace356700" }, "downloads": -1, "filename": "sms-api-1.2.0.win32.zip", "has_sig": false, "md5_digest": "c84ab9bd77207463b5d0c27163da347c", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5933, "upload_time": "2016-02-19T03:45:24", "url": "https://files.pythonhosted.org/packages/a4/e5/ea47691143187dc792de40f926ff62b292a311f508db714867e06ecde334/sms-api-1.2.0.win32.zip" }, { "comment_text": "", "digests": { "md5": "3953441aff442d683e5038e53d38f89d", "sha256": "f792e8b7e77cd66b716ad2389ab9b877a0ece472506837f2e8f51ffeb45df07c" }, "downloads": -1, "filename": "sms-api-1.2.0.zip", "has_sig": false, "md5_digest": "3953441aff442d683e5038e53d38f89d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6454, "upload_time": "2016-02-19T03:45:02", "url": "https://files.pythonhosted.org/packages/8b/84/f7291cf06cdf55f6b262b94feac8b9166972a62c19ed92336af3ca47cecf/sms-api-1.2.0.zip" } ] }, "urls": [ { "comment_text": "built for Windows-8", "digests": { "md5": "c84ab9bd77207463b5d0c27163da347c", "sha256": "0c9ea637af531fd1777dad79e2b79801433ef09b1fdef484a4521eeace356700" }, "downloads": -1, "filename": "sms-api-1.2.0.win32.zip", "has_sig": false, "md5_digest": "c84ab9bd77207463b5d0c27163da347c", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5933, "upload_time": "2016-02-19T03:45:24", "url": "https://files.pythonhosted.org/packages/a4/e5/ea47691143187dc792de40f926ff62b292a311f508db714867e06ecde334/sms-api-1.2.0.win32.zip" }, { "comment_text": "", "digests": { "md5": "3953441aff442d683e5038e53d38f89d", "sha256": "f792e8b7e77cd66b716ad2389ab9b877a0ece472506837f2e8f51ffeb45df07c" }, "downloads": -1, "filename": "sms-api-1.2.0.zip", "has_sig": false, "md5_digest": "3953441aff442d683e5038e53d38f89d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6454, "upload_time": "2016-02-19T03:45:02", "url": "https://files.pythonhosted.org/packages/8b/84/f7291cf06cdf55f6b262b94feac8b9166972a62c19ed92336af3ca47cecf/sms-api-1.2.0.zip" } ] }