#申请房间 V2
https://sms-online.pro/stubs/handler_api.php?action=getNumberV2&api_key=$api_key&country=$country&service=$service&ref=$ref&phoneException=$phoneException&maxPrice=$maxPrice
#参数:
参数 |
类型 |
需要 |
资料描述 |
$api_key |
string |
☑️ |
API 密钥 |
$service |
string |
☑️ |
订购服务 (见表) |
$country |
string |
☑️ |
转移推荐 ID (更多详情) |
$ref |
string |
|
转移转介编号 |
$phoneException |
string |
|
不包括电话号码的前缀. 用逗号指定。记录格式:国家代码和 3 至 6 位掩码(如 7918,7900111)。默认数值为配置文件中指定的数值。 |
$maxPrice |
float |
|
您准备以 FreePrice 购买号码的最高价格。使用浮点数并用点分隔(例如 10.55)。如果未指定,则将按常规价格进行购买。 |
#回应:
回應訊息 |
资料描述 |
{ |
|
“activationId”: 123456, |
|
“phoneNumber”: “79295******”, |
|
“activationCost”: 7.50, |
|
“currency”: 840, |
ISO 4217 Number |
“countryCode”: “0”, |
|
“canGetAnotherSms”: “1”, |
|
“activationTime”: “2025-05-14 11:10:42”, |
|
“activationOperator”: null |
|
} |
|
#可能的错误:
错误 |
资料描述 |
WRONG_MAX_PRICE:$min |
输入的最高价格低于允许的价格 |
BAD_ACTION |
错误的动作 |
BAD_SERVICE |
不正确的服务名称 |
BAD_KEY |
API 密钥不正确 |
ERROR_SQL |
SQL 服务的错误 |
BANNED |
帐户被封锁的时间 |
WRONG_EXCEPTION_PHONE |
不正确的排除前缀 |
NO_BALANCE_FORWARD |
没有足够的资金购买呼叫转移 |
ORDER_ALREADY_EXISTS |
訂單已創建 |