API开发文档

欢迎浏览我们的API开发文档!

可用号码

搜索可用的电话号码

GET

/api/tnInventory

权限:号码

参数
字段类型描述
countryCode字符串缺省值为”1″
StartsWith字符串(可选)号码的起始数字(不含国家代码)
quantity数字(可选)最多返回多少个号码(最大100)




请求样例
/api/tnInventory?countryCode=1&startsWith=626&quantity=2

成功响应
HTTP/1.1 200 OK
 [
   {
     "number": "16264693753",
     "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJVMkZzZEdWa1gxL2NTVyswMjF4R2l2WG9FYVZVNW02ZGozdlJFeE9pb1FMR0pSSDJ5UTlJbkdEeHpYZ2ZVT2ZjY2hLTmFJbmxOQ093QVpIWCttQ2QyZz09IiwiaWF0IjoxNjE1NDA3Njk1LCJleHAiOjE2MTU0MDg1OTV9.MgQfX7j7SJf72f5ZwLPorCKgGEICoJk2S7wWQvNwZTY"
   },
   {
     "number": "16264693761",
     "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJVMkZzZEdWa1gxOXlpZk4rMUN2cmVBUHhDUEptQlc1eG1LbmFNSHF1UjRyK0wrTEI0M0JmZUhWdXZqK2hibThIZURqWC9rd0FGcHJHVEJ3VTdSVDR0Zz09IiwiaWF0IjoxNjE1NDA3Njk1LCJleHAiOjE2MTU0MDg1OTV9.dkBHkL4Elb5hAD0iOBBHD4AWzj8CCIPHh-ISif-UU2w"
   }
 ]




标签:
Table of Contents