shenyunjie

url = \'http://ums.zj165.com:8888/sms/Api/Send.do\' #对应一信通接口地址
nt = int(time.time() * 1000)
content = content.encode(\'GBK\')


data = {
  "SpCode": SpCode, #企业编号
  "LoginName": account, #用户名
  "Password": password, #密钥,通过接口申请生成
  "MessageContent": content, #短信内容,需要GBK或GB2312编码
  "UserNumber": mobile, #手机号
  "SerialNumber": nt, #当前时间戳,毫秒
  "ScheduleTime": "", #是否延时发送
  "f": "1" #回执
} #对应参数


res = requests.post(url=url, data=data) #使用post请求

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2022-02-08
  • 2021-11-26
  • 2021-12-28
  • 2022-02-10
  • 2021-12-07
  • 2021-11-18
猜你喜欢
  • 2021-08-19
  • 2021-12-22
  • 2021-12-22
  • 2022-12-23
  • 2021-11-17
  • 2021-12-22
  • 2021-12-22
相关资源
相似解决方案