查询共享中继的 SIP 运营商
查询支持的 SIP 运营商,以创建中继。
请求 URL
GET {base_url}/dm/open_api/v1/shared_trunk/itsp
请求参数
请求头
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 是 | String | 在请求头中传递访问 Token。 格式:Bearer {access_token}。 |
响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
| data | Object <Details> | 详情。 |
| requestId | String | 请求 ID,作为该请求的唯一标识,用于快速定位请求。 |
| status | String | 请求结果。
|
| time | Long | 请求响应的时间。 注: YCM API
响应返回的是时间戳,如有需要,你可以将时间戳转换成具体的日期和时间。详细操作方法,请参见 将时间戳转换为日期和时间。
|
Details
| 参数 | 类型 | 说明 |
|---|---|---|
| itspInfos | Array <ITSP_Info> | SIP 运营商的信息列表。 |
- ITSP_Info
-
参数 类型 说明 id Integer SIP 运营商的 ID。 country String SIP 运营商所属城市。 name String SIP 运营商名称。
示例
请求示例
GET /dm/open_api/v1/shared_trunk/itsp HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer ******
响应示例
HTTP/1.1 200 OK { "data": { "itspInfos": [ { "id": 111, "country": "United States", "name": "Aasani" }, { "id": 112, "country": "United States", "name": "Bandwidth" }, { "id": 113, "country": "United States", "name": "Callcentric" }, { "id": 114, "country": "United States", "name": "Clearfly Communications" }, { "id": 115, "country": "United States", "name": "Flowroute(east-nj)" }, { "id": 116, "country": "United States", "name": "Flowroute(east-va)" }, ... ... ] }, "requestId": "8460e861f8011a0ab184b0f427d5657d", "status": "Success", "time": 1747031425 }