|Build Status|
Yunpian Provider for smsframework.
You need an account with "SMS Server" service set up. You'll need the following configuration: apikey.
Also you should know, that not any SMS can be sent. But only SMS that match the template or have [Youcompany] signature.
Template can be set here - https://www.yunpian.com/console/#/admin
Example template is "[MyCompany] You secret code: #code#", where #code#
is a variable.
Install from pypi:
$ pip install smsframework_yunpian
from smsframework import Gateway
from smsframework_yunpian import YunpianProvider
gateway = Gateway()
gateway.add_provider('yunpian', YunpianProvider,
apikey='secret_api_key'
)
Source: /smsframework_yunpian/provider.py
apikey
: Api keysignature
: Optional signature, if set it will be prepended to all SMS. Example:"[MyCompany]"
Provider-specific sending params: None
Provider-specific sending params
Provider-specific income message fields.
Provider-specific message status fields.