Ruby SMS verification code interface call document

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

require 'typhous'

# Send SMS interface URL, if not necessary, this parameter can not be modified
api_send_url=" http://222.73.117.156/msg/HttpBatchSendSM"
# Replace with your own account
account="xxxxxx"
# Replace 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=326167895&siteId=291194637