17.1 接口说明

该规范由优音通信定义,客户系统需按此规范实现该接口。优音通信平台该接口向第三方客户提供双向呼叫透A服务。请求数据以 json 字符串形式传递,通过 http post 方式请求

17.2 调用形式

https://ykf.uincall.com/openapi/twc/call?tenant_id=xxxx-d0e2-xxxx-74cb399xxxxx&access_token=xxxx927b24acffc41078ddxxxxx

17.3 调用方式

POST

17.4 请求数据格式

{
“called”: “xxxxxx”,
“country_code”:”xxxxxx”,
“agent_num”:”xxxxx”
}

17.5 请求参数说明

序号 名称 是否必填 说明
1 called 被叫号码
2 country_code 国家编码取值:
● 国内:+86
3 agent_num 座席工号

17.6 返回参数说明

序号 名称 类型 说明
1 errcode Number 状态码:0成功,其他非0错误码,详见错误码列表
2 errmsg String 状态说明
3 data Object类型数组 结果集

17.7 使用样例

调用:

url:https://ykf.uincall.com/openapi/twc/call?tenant_id=xxxx-d0e2-xxxx-74cb399xxxxx&access_token=xxxx927b24acffc41078ddxxxxx

POST数据:
{
    "called": "182****2345",
    "country_code": "+86",
    "agent_num": "1xx5"
}

响应:

{
"errcode": 0,
"errmsg": "success",
"data": {
    "session_id": "xxxx-8bb3-4382-865f-xxxx",
    "call_id": "xxxx-84e0-xxxx-baf6d74xxxx"
    }
}
文档更新时间: 2024-04-26 14:23   作者:admin