#!/bin/sh
#author ChuangLan
#修改為您的account
account=""
#修改為您的pw
password="a.123456"
#手機号碼,格式(區号+手機号碼),例如:8615800000000,其中86為中國的區号
mobile="8615800000000"
#設定您要發送的内容
msg="【253雲通訊】您的驗證碼是123456。如非本人操作,請忽略。"
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