使用PSWinCom Link短信网关发送短信的软件包。
pswingw2的Python项目详细描述
……图片::https://img.shields.io/pypi/v/pswingw2.svg
:目标:https://pypi.python.org/pypi/pswingw2
…图片::https://travis-ci.org/zettaio/pswingw2py.svg?branch=master
:target:https://travis ci.org/zettaio/pswingw2py
=====
pswinpy_u官方包在过去5年中没有任何活动,只支持一小部分api。2016年1月,官方包中的默认端点不再有效。这是创建此库的主要动机。
此模块通过https以xml形式发送数据。
演示帐户可用。
这段代码演示如何发送简单的短信:
import pswingw2 as sms
config=sms.config(“username”,“password”)
sms.send_simple_message(config,msg_to=“4700000000”,msg_from=“My Company”,text=“hello world”)
还可以发送更复杂的消息::
sms.send_single(配置,消息)
sms.send_batch(配置,消息列表)
send calls还返回可以检查的消息状态结构。所需的文档。
也可以使用客户端类发送消息:
client.send(..)
client.send_single(..)
client.send_batch(..)
控制台支持发送消息的命令:
pswinsms-u username-p password-to 4700000000-从“我的公司”这是一条测试消息
properties
----
receiver、sender和消息文本是发送消息时的必需属性。支持的属性可以在联机
文档中的“Element valid for a submit sms request”下找到。
config object
----
按名称使用
get(name)方法。这可以是模块、dict或类(或任何适合您的结构):
endpoints=['https://xml.pswin.com','https://xml2.pswin.com']
username='myusername'
password='mypassword'
``pswingw2.config默认值``模块有一些有用的示例。
license
----
根据麻省理工学院的许可条款使用。_ python:http://www.python.org/
。_`在线文档`:https://wiki.pswin.com/gateway%20xml%20api.ashx
…_` pswin com xml sms gateway`:https://wiki.pswin.com/gateway%20xml%20api.ashx
。_ pswinpy:https://github.com/pswincom/pswinpy
。_` link sms gateway`:http://www.linkmobility.com/products/link sms gateway/
。_`元素对提交sms请求有效:https://wiki.pswin.com/gateway%20xml%20api.ashx元素对提交sms请求有效:_0
:目标:https://pypi.python.org/pypi/pswingw2
…图片::https://travis-ci.org/zettaio/pswingw2py.svg?branch=master
:target:https://travis ci.org/zettaio/pswingw2py
pswinpy_u官方包在过去5年中没有任何活动,只支持一小部分api。2016年1月,官方包中的默认端点不再有效。这是创建此库的主要动机。
此模块通过https以xml形式发送数据。
演示帐户可用。
这段代码演示如何发送简单的短信:
import pswingw2 as sms
config=sms.config(“username”,“password”)
sms.send_simple_message(config,msg_to=“4700000000”,msg_from=“My Company”,text=“hello world”)
还可以发送更复杂的消息::
sms.send_batch(配置,消息列表)
send calls还返回可以检查的消息状态结构。所需的文档。
也可以使用客户端类发送消息:
client.send_single(..)
client.send_batch(..)
控制台支持发送消息的命令:
pswinsms-u username-p password-to 4700000000-从“我的公司”这是一条测试消息
properties
----
receiver、sender和消息文本是发送消息时的必需属性。支持的属性可以在联机
文档中的“Element valid for a submit sms request”下找到。
config object
----
按名称使用
get(name)方法。这可以是模块、dict或类(或任何适合您的结构):
endpoints=['https://xml.pswin.com','https://xml2.pswin.com']
username='myusername'
password='mypassword'
``pswingw2.config默认值``模块有一些有用的示例。
license
----
根据麻省理工学院的许可条款使用。_ python:http://www.python.org/
。_`在线文档`:https://wiki.pswin.com/gateway%20xml%20api.ashx
…_` pswin com xml sms gateway`:https://wiki.pswin.com/gateway%20xml%20api.ashx
。_ pswinpy:https://github.com/pswincom/pswinpy
。_` link sms gateway`:http://www.linkmobility.com/products/link sms gateway/
。_`元素对提交sms请求有效:https://wiki.pswin.com/gateway%20xml%20api.ashx元素对提交sms请求有效:_0