sms.sh 224 B

12345678
  1. #! /bin/bash
  2. #
  3. phone=$1
  4. message=$2
  5. server="http://xxx.com/api/v1/notify/sms"
  6. curl -H "Content-Type:application/json" -X POST "$server" --data "{\"app\": \"std\", \"tos\": [\"$phone\"], \"content\": {\"msg\":\"$message\"}}"