{ "info": { "author": "Einar Forselv", "author_email": "eforselv@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Communications :: Telephony", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://img.shields.io/pypi/v/pswingw2.svg\n :target: https://pypi.python.org/pypi/pswingw2\n\n.. image:: https://travis-ci.org/ZettaIO/pswingw2py.svg?branch=master\n :target: https://travis-ci.org/ZettaIO/pswingw2py\n\nPSWinCom GW2 / LINK SMS Gateway Python Package\n=============================================\n\nA Python_ interface to the `PSWinCom XML SMS Gateway`_ now also called the `LINK SMS Gateway`_. Link Mobility bought PSWinCom 31 December 2014.\n\nThe official pswinpy_ package has no activity in the last 5 years and only supports a small subset of the api. In January 2016 the default endpoints in the official package are no longer valid. This was the main motivation for creating this library.\nThis module sends data as XML over HTTPS.\n\nInstallation\n------------\n\npip install pswingw2\n\nBasic Usage\n-----------\n\nTo use this package, you will need sign up for a Gateway account with PSWinCom. Demo account are available.\n\nThis piece of code demonstrates how to send a simple SMS message::\n\n import pswingw2 as sms\n config = sms.config(\"username\", \"password\") \n sms.send_simple_message(config, msg_to=\"4700000000\", msg_from=\"My Company\", text=\"Hello World\")\n\nMore complex messages can also be sent::\n\n sms.send(config, data)\n sms.send_single(config, message)\n sms.send_batch(config, message_list)\n\nSend calls also returns a message status structure that can be inspected. Docs needed.\n\nMessages can also be sent using a client class::\n \n client = sms.Client(config)\n \n client.send_simple_message(..)\n client.send(..)\n client.send_single(..)\n client.send_batch(..)\n\nConsole Support\n---------------\n\nInstalling this module also adds a console command for sending messages::\n\n pswinsms -u username -p password -to 4700000000 -from \"My Company\" This is a test message\n\nProperties\n----------\n\nReceiver, sender and message text are mandatory properties when sending a message. Supported properties can be found in the online\ndocumention under `Element valid for a Submit SMS request`_.\n\nConfig Object\n-------------\n\nYou configure the library by defining a config object that are passed with send calls.\n\nThe following attributes must be defined and the config object must be able to obtain them by name using\nthe get(name) method. This can be a module, dict or class (or whatever structure is suitable for you)::\n\n ENDPOINTS = ['https://xml.pswin.com', 'https://xml2.pswin.com']\n USERNAME = 'myusername'\n PASSWORD = 'mypassword'\n\nThe ``pswingw2.config_defaults`` module have some useful examples.\n\nLicense\n-------\nThis code is free to use under the terms of the MIT license.\n\n.. _Python: http://www.python.org/\n.. _`Online Documentation`: https://wiki.pswin.com/Gateway%20XML%20API.ashx\n.. _`PSWinCom XML SMS Gateway`: https://wiki.pswin.com/Gateway%20XML%20API.ashx\n.. _pswinpy: https://github.com/PSWinCom/pswinpy\n.. _`LINK SMS Gateway`: http://www.linkmobility.com/products/LINK-sms-gateway/\n.. _`Element valid for a Submit SMS request`: https://wiki.pswin.com/Gateway%20XML%20API.ashx#Element_valid_for_a_Submit_SMS_request:_0\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/ZettaIO/pswingw2py/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ZettaIO/pswingw2py", "keywords": "sms,pswin,linkmobility", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pswingw2", "package_url": "https://pypi.org/project/pswingw2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pswingw2/", "project_urls": { "Download": "https://github.com/ZettaIO/pswingw2py/archive/0.1.tar.gz", "Homepage": "https://github.com/ZettaIO/pswingw2py" }, "release_url": "https://pypi.org/project/pswingw2/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A package for sending SMS messages using the PSWinCom LINK SMS Gateway.", "version": "0.2.1" }, "last_serial": 2499480, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e8166da4957c85fe79126f9949725731", "sha256": "05d1901577ee1d0ec34f084780913350f4d09feca31f40142541bc37a357bb8e" }, "downloads": -1, "filename": "pswingw2-0.1.tar.gz", "has_sig": false, "md5_digest": "e8166da4957c85fe79126f9949725731", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6781, "upload_time": "2016-01-29T01:37:26", "url": "https://files.pythonhosted.org/packages/3f/f9/59887613fc26b74830852354e90aa918fbce5d112f4b5d1ddf44beb7b6b0/pswingw2-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bc830e600524c847e8edd3fe8064bee3", "sha256": "4a772cd5f3cf9f7f019c4be231cdf5588dfc65bdaba603d56e135601c5ba073f" }, "downloads": -1, "filename": "pswingw2-0.2.tar.gz", "has_sig": false, "md5_digest": "bc830e600524c847e8edd3fe8064bee3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6839, "upload_time": "2016-01-29T01:50:00", "url": "https://files.pythonhosted.org/packages/2e/98/4210bac03d777ceb4e6483f7be0e5cb02835cb257c3bd8ee318180d3b934/pswingw2-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b8c32730a42c1aad892f8fd7006a2e83", "sha256": "9ee0251c598a89b328d5aee9697f580691cdbbed538e3ada088a01b585294371" }, "downloads": -1, "filename": "pswingw2-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b8c32730a42c1aad892f8fd7006a2e83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6877, "upload_time": "2016-12-05T03:15:01", "url": "https://files.pythonhosted.org/packages/da/70/ecd7f38afd6cc868664ea0ed727c2222346b8c4fd313e30018c4cf85ec1d/pswingw2-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8c32730a42c1aad892f8fd7006a2e83", "sha256": "9ee0251c598a89b328d5aee9697f580691cdbbed538e3ada088a01b585294371" }, "downloads": -1, "filename": "pswingw2-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b8c32730a42c1aad892f8fd7006a2e83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6877, "upload_time": "2016-12-05T03:15:01", "url": "https://files.pythonhosted.org/packages/da/70/ecd7f38afd6cc868664ea0ed727c2222346b8c4fd313e30018c4cf85ec1d/pswingw2-0.2.1.tar.gz" } ] }