上云无忧 > 文档中心 > 百度智能云智能外呼开放平台 - 获取主叫号码列表
智能外呼
百度智能云智能外呼开放平台 - 获取主叫号码列表

文档简介:
概述: 调用接口,可获取租户下所有的主叫号码。 URL:https://aicc.bce.baidu.com/api/v1/did/list HTTP Method:GET。 请求参数: HEADER。
*此产品及展示信息均由百度智能云官方提供。免费试用 咨询热线:400-826-7010,为您提供专业的售前咨询,让您快速了解云产品,助您轻松上云! 微信咨询
  免费试用、价格特惠

概述

调用接口,可获取租户下所有的主叫号码

URL

https://aicc.bce.baidu.com/api/v1/did/list

HTTP Method

GET

请求参数

HEADER

参数名称 是否必须 说明 示例
Authorization 参考「生成认证Token」文档 cc-api-auth-v1/5b050c050f5a4e74b8c20bf512e39c1d/2021-04-13T08:05:43Z/1800000/host;x-bce-date/746ed9ad706c379f31bafc292e3c720797e39bb7f08ce5f641d657e14e42dd33

响应参数

参数名称 类型 说明
code int http响应码,比如200、400
msg string 响应信息,成功为success,失败时为具体原因
data obj 主叫号码数据

data数据

参数名称 类型 说明
pn int 页码
ps int 每页显示号码个数
orderBy string 顺序规则
order string 顺序/倒序
total int 总个数
list array 主叫号码list

list数据

参数名称 类型 说明
id long 主叫号码唯一标识
didAreaCode string 区号
didNumber string 号码
didType int 号码类型 1-固话, 3-手机号,4-其他
didOwner int 号码来源:0-平台号码,1-第三方号码
operator int 运营商 1-中国联通,2-中国移动,3-中国电信
province string 号码所在省名称
provinceId string 号码所在省ID
city string 号码所在市名称
cityId string 号码所在市ID
inOutBound int 号码用途: 0-呼入,1-呼出,2-呼入/呼出
serviceNumber string 服务号码
state int 状态 1-启用中,2 禁用, 3-欠费中,4-停用中

请求示例

GET /api/v1/did/list
	Host: 127.0.0.1:8420 Date: Fri, 14 Aug 2020 03:11:49 GMT Content-Type: application
/json; charset=utf-8 Connection: Keep-Alive
	Authorization: cc-api-auth-v1/5b050c050f5a4e74b8c20bf512e39c1d/2021-04-13T08:
05:43Z/1800000/host;x-bce-date/746ed9ad706c379f31bafc292e3c720797e39bb7f08ce5f641d657e14e42dd33

响应示例

{ "code": 200, "msg": "success", "data": { "pn": null, "ps": null, "orderBy": null, "order":
 null, "total": null, "list": [ { "id": 6172, "didAreaCode": "020", "didNumber": "66242194", 
"didType": 1, "didOwner": 0, "operator": 0, "provinceId": null, "province": "广东", "cityId":
 null, "city": "广州", "inOutBound": 2, "serviceNumber": "", "state": 1 }, { "id": 6458, 
"didAreaCode": "020", "didNumber": "66242195", "didType": 1, "didOwner": 0, "operator": 0, 
"provinceId": null, "province": "广东", "cityId": null, "city": "广州", "inOutBound": 1, 
"serviceNumber": "123123", "state": 1 } ] } }

相似文档
官方微信
联系客服
400-826-7010
7x24小时客服热线
分享
  • QQ好友
  • QQ空间
  • 微信
  • 微博
返回顶部