Recently developed a project , Need to use SMS verification code as a login , We found an interface for SMS service providers in the cloud market , The code is as follows , Take what you need :
import requests
url = "https://vip.veesing.com/smsApi/verifyCode"
payload = 'appId=41KYR0EB****&appKey=IIWCKKSR7NOQ****&phone=1561894****&templateId=1043&variables=1234'
headers = {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
}
response = requests.request("POST", url, headers=headers, data = payload)
print(response.text.encode('utf8'))
As a reminder : Don't forget to limit a number to three requests a day .