Loading...
×
Large Modal
登入
繁體
English
简体
Toggle navigation
登入
註冊帳號
忘記密碼
首頁
API & Test
HTTP API
測試
Contacts
費率
首頁
Your secret key:
HTTP API URL:
https://www.asaysms.com/sms/v1/
HTTP Parameters. (accept GET or POST)
Send SMS - Example
Request:
https://www.asaysms.com/sms/v1/
?key=
secret
&
action=
send
&
to=
95949306844
&
text=
Hello+World
Output JSON format:
{"msg_id":"343d9040a671c45832ee5381860e2996","status":queued,"rate"=>0.035, "currency"=>"usd","error_msg":""}
Possible values for the 'status':
queued, failed
Get SMS status
Example
https://www.asaysms.com/sms/v1/?
key=
secret&
action=
info&
msg_id=
343d9040a671c45832ee5381860e2996
Output JSON format:
{"status":"sent","rate"=>"0.035", "currency":"usd", "error_msg":""}
Possible values for the 'status':
queued, sent, sending, failed
Get Balance
Example
https://www.asaysms.com/sms/v1/?
key=
secret&
action=
balance
Output JSON format:
{"balance":"1200","error_msg":""}