编程知识 cdmana.com

With all due respect, python- http.client Access SMS verification code, see this one is enough

SMS verification code registration login , First, you need to generate 4 Bits or 6 Bit random number , Then the random number is sent to the requested mobile phone number through SMS interface , Then check whether the input random number is consistent .

The logic is still very simple and clear , The following is a demonstration of the interfaces of SMS providers in the cloud market , As shown below :
`
import http.client
import mimetypes
conn = http.client.HTTPSConnection("vip.veesing.com")
payload = 'appId=41KYR0EB&appKey=IIWCKKSR7NOQ&phone=1561894**&templateId=1043&variables=1234'
headers = {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
}
conn.request("POST", "/smsApi/verifyCode", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
`
This is the captcha sign in Python - http.client How to access SMS interface , After meeting many, I became proficient .

Python - http.client.py And document description download

版权声明
本文为[Qualified workers]所创,转载请带上原文链接,感谢

Scroll to Top