Shell对接营销短信API接口代码示例

json_data='{
    "api_id":"sms-yx-xxxxxxxx",    "signature":"xxxxxxxxx",    "timestamp":1623643787,
    "request_id":"xxxxxxxxxxxx",    "product_id":1001,
    "phone":["18800000000","18800000001"],
    "sign_name":"xxxxxxxx",    "content":"尊敬的会员您好:${name},您的订单号是:${order_no},拒收请回复R",    "template_id":1,
    "template_var":{"${name}":"张三","${order_no}":"202009041156181103"},
    "send_time":"2020-08-26 16:08:14"}'

curl --http1.1 -X POST "https://api.ihuyi.com/sms-yx/v1/batchSend" -H "Content-Type: application/json" -d "$json_data"