API v2.0
API是你的软件和我们的激活服务器之间的互动协议。 服务器之间的互动协议。为了使您的短信接收过程自动化,需要API。 要使用API,你必须使用你的API密钥,你可以通过进入个人资料 页面获得。我们的软件与竞争对手的网站完全兼容
API端口描述
所有的请求必须进入https://api.sms-man.com/cn/rent-api/ POST或GET请求。所有的请求中必须含有 token参数形式的API密钥
查询余额请求
https://api.sms-man.com/control/get-balance?token=$token
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
结果
可能的错误
调用限制
https://api.sms-man.com/control/limits?token=$token&country_id=$country_id&application_id=$application_id
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
| country_id | Integer | no | 国家号码 |
| application_id | Integer | no | 号码服务 |
结果
可能的错误
请求号码
https://api.sms-man.com/control/get-number?token=$token&country_id=$country_id&application_id=$application_id
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
| country_id | Integer | no | 国家号码 |
| application_id | Integer | no | 号码服务 |
| maxPrice | Integer | no | 您期望的价格 |
| currency | String | no | RUB/USD/EUR |
| ref | String | no | 转移返利ID |
| hasMultipleSms | String | no | True/False |
结果
可能的错误
获取短信
https://api.sms-man.com/control/get-sms?token=$token&request_id=$request_id
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
| request_id | Integer | yes | 要求ID |
结果
可能的错误
更改请求状态
https://api.sms-man.com/control/set-status?token=$token&request_id=$request_id&status=$status
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
| request_id | Integer | yes | 要求ID |
| 状态 | String | yes | ready / close / reject / used |
结果
可能的错误
取得當前價格
https://api.sms-man.com/control/get-prices?token=$token&country_id=$country_id
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
| country_id | Integer | no | 国家号码 |
结果
可能的错误
获取所有国家的列表
https://api.sms-man.com/control/countries?token=$token
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |
结果
可能的错误
获取所有服务的列表
https://api.sms-man.com/control/applications?token=$token
参数
| 场地 | 类型 | 需要 | 价值 |
|---|---|---|---|
| token | String | yes | 您的API密钥 |






