This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Enviroment

python version : >=3.3

requirements : requests,pytest

TO DO

submail service api yes/no
sms yes
international sms yes
mail yes
cell phone traffic no
voice no
addressbook no

Installation

$ python3.x setup.py install

or

$ pip3.x install submail

QuickStarted

sms service

send single message

from submail import submail


manager = submail.build("sms")
msg = manager.message()
msg['appid'] = 'your submail app id'
msg['project'] = 'your message template id'
msg['signature'] = 'your app secret key'
msg['to'] = 'mobile phone number'
# variables in your message template
msg['vars'] = {"var1":"xxxxx","var2":"yyyy"}
# send message,return response
result = msg.send(stype="xsend", inter=False)

# send international message
result = msg.send(stype="xsend", inter=True)

send multi message

from submail import submail


manager = submail.build("sms")
msg = manager.message()
msg['appid'] = 'your submail app id'
msg['project'] = 'your message template id'
msg['signature'] = 'your app secret key'
msg['multi'] ={"to":"phone number1","vars":{"var1":"2323","vars2":"dede"}}
msg['multi'] ={"to":"phone number2","vars":{"var1":"2323","vars2":"dede"}}
# send message,return response
result = msg.send(stype="multixsend", inter=False)

# send inernational message
result = msg.send(stype="multixsend", inter=True)

template opertion

from submail import submail

manager = submail.build("sms")

# create template
tmpl = manager.template()
tmpl['appid'] = 'your appid'
tmpl['signature'] = 'your signature'
tmpl['sms_signature'] = 'your sms signature'
tmpl['sms_content'] = 'your sms_content'
result = tmpl.create()

# get template
tmpl = manager.template()
tmpl['appid'] = "your appid"
tmpl['signature'] = "your signature"
tmpl['template_id'] = "template id"
result = tmpl.get()

# update template
tmpl = manager.template()
tmpl['appid'] = 'your appid'
tmpl['signature'] = 'your signature'
tmpl['sms_signature'] = 'your sms signature'
tmpl['sms_content'] = 'your sms_content'
tmpl['template_id'] = 'template id'
result = tmpl.update()

# delete template
tmpl = manager.template()
tmpl['appid'] = 'your appid'
tmpl['signature'] = 'your signature'
tmpl['template_id'] = 'template id'
tmpl.delete()

log operation

from submail import submail

manager = submail.build("sms")

log = manager.log()
log['appid'] = "your appid"
log['signature'] = "your appid"
result = log.get()

mail service

mail send

from submail import submail

manager = submail.build("mail")

# send api
mail = manager.mail()
mail['appid'] = "your app id"
mail["signature"] = "your signature"
mail["subject"] = "title"
mail["to"] = "to mail address"
mail["from"] = "your mail address"
mail["from_name"] = "your mail address"
mail.send()

# xsend api
mail = manager.mail()
mail["appid"] = "your appid"
mail["signature"] = "your signature"
mail["project"] = "mail project id"
mail["to"] = "to mail address"
mail["from"] = "your mail address"
mail.send("xsend")

License

MIT LICENSE

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
submail-0.3.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256 Source Aug 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting