API: service/verifyphonenumber
概览
service/verifyphonenumber
是SUBMAIL的国际号码归属地国家查询API。
使用 service/verifyphonenumber
可以查询您传入的国际手机号码的归属地国家和单价等信息。
URL
<主> https://api.mysubmail.com/service/verifyphonenumber
<备> https://api.submail.cn/service/verifyphonenumber
支持格式
格式 | URL |
---|---|
json | https://api.mysubmail.com/service/verifyphonenumber.json (默认) |
xml | https://api.mysubmail.com/service/verifyphonenumber.xml |
http 请求方式
请求方式 | content-type设置 |
---|---|
http post | multipart/form-data 、x-www-form-urlencoded 、application/json |
是否需要授权
否
参阅 API 授权和验证机制
balance/sms POST 方法 请求参数
参数 | 类型 | 必需/可选 | 默认 | 描述 |
---|---|---|---|---|
to | string | 必需 | 无 | 需要验证的国际手机号码,使用标准的 E164 格式。 e.g. +1778889901 |
代码示例
发送一封测试短信
POST
https://api.mysubmail.com/service/verifyphonenumber.json
POST DATA
to=+17788xxxxxxxx
返回
{
"status":"success"
"to":"+17788xxxxxxxx"
"country_code":"1",
"country_region":"CA",
"country_name":"Canada",
"price":"0.070"
}