POST https://open.sobot.com/open/platform/api.json
参数名 |
类型 |
必填 |
说明 |
|
action |
字符串 |
是 |
传值为"console_direct_url" |
|
access_token |
字符串 |
是 |
调用接口凭据 |
|
data |
对象 |
是 |
详见下文 |
|
参数名 |
类型 |
必填 |
说明 |
|
email |
字符串 |
是 |
客服邮箱 |
|
type |
整型 |
否 |
登录页面,1:工作台 |
|
参数名 |
类型 |
说明 |
|
code |
字符串 |
执行结果码,1000代表成功 |
|
data |
对象 |
详见下文 |
|
参数名 |
类型 |
说明 |
|
url |
字符串 |
跳转地址 |
|
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "console_direct_url",
"access_token": "xx",//获取access_token
"data": {
"email": "xx",
"type":1
}
}'
返回示例
{
"code":"1000",
"data":{
"url" : "xx"
}
}