单点登录接口

请求方法

POST / api.json

请求参数(Request Body)

参数名 类型 必填 说明
action 字符串 传值为"console_direct_url"
access_token 字符串 调用接口凭据
data 对象 详见下文

请求data

参数名 类型 必填 说明
email 字符串 客服邮箱

返回数据

参数名 类型 说明
code 字符串 执行结果码,1000代表成功
data 对象 详见下文

返回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"
    }
}'

返回示例

{   
   "code" : "1000",
    "data" : {
       "url" : "xx"
    }
}

results matching ""

    No results matching ""