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