"Shell" Gen Blue 253 Cloud communication platform International SMS API interface Demo

Source: Internet
Author: User
#!/bin/sh

Account and password can is change to what do you wanna!

#author Chuanglan
#修改为您的account
Account= ""
#修改为您的pw
Password= "a.123456"
#手机号码, Format (area code + mobile number), for example: 8615800000000, where 86 is China's area code
Mobile= "8615800000000"
#设置您要发送的内容
msg= "253 Cloud Communication" Your verification code is 123456. If you do not operate, please ignore. "
echo "Send SMS:"

Url= "Http://intapi.253.com/send/json"

Data= "{\" account\ ": \" $account \ ", \" password\ ": \" $password \ ", \" mobile\ ": \" $mobile \ ", \" msg\ ": \" $msg \ "}"
Curl-h "Content-type:application/json"-X POST--data $data $url

"Shell" Gen Blue 253 Cloud communication platform International SMS API interface Demo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.