用于通过http/s管理smsapi帐户的python库
smsapi-pozytywnie的Python项目详细描述
python客户端vms oraz zarz_dzanie kontem w serwisie sms api.pl
示例:
`` python
来自smsapi.client import smsapi
来自smsapi.responses import apierror
api.set_username('your username')
api.set_password('your password')
api.service('sms').action('send')
api.set廑content('hello[%1%][%2%]')
api.set廑params('name','last name')
api.set廑to('60xxxxxxx')
api.set廑from('info')\pole nadawcy lub typ wiadomo'eco',2way
result=api.execute
打印r.id,r.points,r.status
除了APIError,e:
打印%s-%s%(e.code,e.message)
`````
示例:
`` python
来自smsapi.client import smsapi
来自smsapi.responses import apierror
api.set_username('your username')
api.set_password('your password')
api.service('sms').action('send')
api.set廑content('hello[%1%][%2%]')
api.set廑params('name','last name')
api.set廑to('60xxxxxxx')
api.set廑from('info')\pole nadawcy lub typ wiadomo'eco',2way
result=api.execute
打印r.id,r.points,r.status
除了APIError,e:
打印%s-%s%(e.code,e.message)
`````