互億無線 · 文檔中心

號碼標(biāo)記查詢(平臺版) - 代碼示例


python對接號碼標(biāo)記查詢接口DEMO示例
本文為您提供了python語言版本的號碼標(biāo)記查詢對接DEMO示例

號碼標(biāo)記查詢接口文檔 點(diǎn)擊下載

號碼標(biāo)記查詢接入指南 點(diǎn)擊訪問


#接口類型:互億無線號碼標(biāo)記查詢(平臺)接口
#賬戶注冊:https://user.ihuyi.com/register.html
#注意事項:
#DEMO僅作參考
#此為python3版本

import requests
import json
import time
import hashlib

#接口地址
url = "https://api.ihuyi.com/info_service/numbermarkplatform/Submit.json"

account = "APPID"
password = "APPKEY"
content = "02151691111"
_now = str(int(time.time()))
password_raw = account + password + _now
# print(password_raw)
password_md5 = hashlib.md5(password_raw.encode(encoding="UTF-8")).hexdigest()
# print(password)

#定義請求的數(shù)據(jù)
data = {
    "account":account,
    # "password":password,
    "password":password_md5,
    "content":content,
    "time":_now,
}

#定義請求的頭部
headers = {
    "Content-type": "application/x-www-form-urlencoded",
    "Accept": "text/plain"
}

#發(fā)起請求
response = requests.post(url, headers=headers, data=data)

#打印結(jié)果
print(response.content.decode())

現(xiàn)在注冊,即享新用戶禮包!

在線咨詢
吴秦
銷售經(jīng)理微信
程媚
售后經(jīng)理微信
電話咨詢

服務(wù)熱線:

4008 808 898

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

4008 808 898

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

13816943793

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

18321001161

您的滑动验证使用次数已达上限

驗證碼已發(fā)送到您的手機(jī),請查收!

輸入驗證碼后,點(diǎn)擊“開通體驗賬戶”按鈕可立即開通體驗賬戶。

收不到短信驗證碼?
您的滑动验证使用次数已达上限
互億無線不提供接碼服務(wù),接碼用戶請勿點(diǎn)擊開通按鈕。
×
1
we are offline