日韩亚洲欧美一区二区三区,日本免费暖暖在线小视频,翘臀美女131,国产午夜av一在线观看

PYTHON

PYTHON代碼示例

#接口類型:達(dá)信通國(guó)際短信接口。
#賬戶注冊(cè):請(qǐng)通過(guò)該地址開(kāi)通賬戶http://sms.wx96.com/register.html
#注意事項(xiàng):
#(1)調(diào)試期間,請(qǐng)仔細(xì)閱讀接口文檔;
#(2)請(qǐng)使用 用戶名 及 APIkey來(lái)調(diào)用接口,APIkey在會(huì)員中心可以獲?。?
#(3)該代碼僅供接入達(dá)信通短信接口參考使用,客戶可根據(jù)實(shí)際需要自行編寫(xiě);
   
#!/usr/local/bin/python
#-*- coding:utf-8 -*-
import httplib
import urllib
 
host  = "api.isms.wx96.com"
sms_send_uri = "/webservice/isms.php?method=Submit"
 
#//用戶名是登錄wx96.com賬號(hào)名(例如:cf_demo123)
account  = "用戶名"
#密碼 查看密碼請(qǐng)登錄用戶中心->國(guó)際短信->帳戶及簽名設(shè)置->APIKEY
password = "密碼"
 
def send_sms(text, mobile):
    params = urllib.urlencode({'account': account, 'password' : password, 'content': text, 'mobile':mobile,'format':'json' })
    headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
    conn = httplib.HTTPConnection(host, port=80, timeout=30)
    conn.request("POST", sms_send_uri, params, headers)
    response = conn.getresponse()
    response_str = response.read()
    conn.close()
    return response_str
 
if __name__ == '__main__':
 
    mobile = "138xxxxxxxx"
    text = "Your verification code is 1125"
 
    print(send_sms(text, mobile))




在線咨詢
電話咨詢

服務(wù)熱線:

4008 808 898

服務(wù)熱線(工作時(shí)間):

4008 808 898

業(yè)務(wù)咨詢(非工作時(shí)間):

4008 808 898

售后咨詢(非工作時(shí)間):

4008 808 898

会理县| 大安市| 福海县| 泗水县| 临邑县| 栾城县| 邛崃市| 汤阴县| 岳普湖县| 莆田市| 八宿县| 安化县| 佛山市| 石景山区| 滨海县| 梅州市| 贺州市| 澄江县| 桓仁| 阳谷县| 南通市| 德阳市| 德化县| 嵊泗县| 遂溪县| 高唐县| 阿拉善左旗| 盐津县| 上高县| 环江| 德庆县| 多伦县| 湛江市| 尉犁县| 田东县| 武安市| 中江县| 白水县| 桦南县| 固镇县| 周口市|