从品牌网站建设到网络营销策划,从策略到执行的一站式服务
#encoding=utf-8
import chardet
import urllib
import requests
import json
import os
import hashlib
'''校验短信验证码到接口'''
def checkVCodeBeforeLoginNew():
head = {
'Content-Type': "application/json",
'X-Toon-User-ID': '9000037',
'X-Toon-User-Token': '16c9f975-',
'X-Toon-User-Agent': 'platform'
}
print "校验短信验证码到接口"
data = json.dumps({"channel":"string","code":"string","deviceName":"string","deviceToken":"string","fromWhere":"string","idfa":"string","imei":"string","macAddress":"string","mobile":"21410665218","mobileVerfiyCode":"1111","teleCode":"0086","type":0,"uuid":"34545"})
r = requests.post('{ip}', data= data,headers=head)
print r.status_code
print r.text
#print type(r.json())
#print str(r.json())
校验短信验证码到接口
200
{"meta":{"code":0,"message":"success"},"data":{"userId":9000037,"userName":"21410665218","token":"16c9f975-d5d7-4cef-9a12-fb8dc5a81792","personToken":"2f06e1c8f8372f1d2e87e89334177d28bc5453c80c53664c2ffd32700d84b26595e646b2c87a7ab1cc121271eecae42891167a68e65b5d573fb87eb5c446e3e3458d74acee38ef21dfacc4eff32140235ad96ba634ab66b686b2946ee45f726b","status":"1"}}
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图