# -*- coding: utf-8 -*- #特别注意:参数传递时去除“<>”符号! import requests; import json; def send_messag_example(): resp = requests.post(("http://api.weimi.cc/2/ivr/send.html"), data={ "uid": "<enter your UID>", "pas": "<enter your UID Pass>", "mob": "<enter your mobile>", "con": "1234", "type": "json" },timeout=3 , verify=False); result = json.loads( resp.content ) print result if __name__ == "__main__": send_messag_example(); #注意:以上参数传入时不包括“<>”符号
{ "code":0, "msg":"发送成功" }
{ "sms-left":157, "sms-sent":13, "sms-total":190, "mms-left":90, "mms-sent":0, "mms-total":100, "msg":"微米账户余额查询" }
√ 开发文档
√ 短信接口
√ 彩信接口
√ 账户余额查询接口
√ PHP示例
√ Java示例
√ C#示例