Chuanglan 253 cloud communication platform --- SMS verification code API interface

Chuanglan 253 SMS platform---Ruby interface
# This code is only used for learning and research interface, but provides a reference.

require 'typhous'

# Send SMS interface URL, if not necessary, this parameter can be modified without modification
api_send_url="http: //222.73.117.156/msg/HttpBatchSendSM"
# Create a blue account, replace it with your own account
account="xxxxxx"
# Create a blue password, replace it with your own password
pswd="xxxxxx"

body={account:account,pswd :pswd,mobile:"13800138000",msg:"Hello, your verification code is 1234",needstatus:"true"}

resp=Typhoeus::Request.post(api_send_url,body:body)
puts resp.body

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326133823&siteId=291194637