6.3 请求鉴权:token

请求地址

https://api.robotscloud.com/osr/v2/token

请求方法

Get、Post方法。

请求参数

名称 类型 是否必须 描述
service_key String 通过萝卜头平台开通服务后创建的密钥
device_sn String 设备序列号
service_code String 服务码,在萝卜头平台申请后生成

返回参数

名称 类型 描述
ret Int 0:正常返回;非0时为错误值;
msg String 描述
token String 后续人形检测服务API调用时传入的令牌参数
expired Int Unix格式时间,表示token过期时间

错误码

错误代码 描述 语义
0 正确
非0 错误 详见 msg

示例

请求示例

curl -X POST "https://api.robotscloud.com/osr/v2/token" \
-F "service_key=qg9vRfvofK9b4xsWh1kHnEb998lQZYwe" \
-F "device_sn=123" \
-F "service_code=123"

返回示例

{
    "ret": 0,
    "msg": "",
    "token": "kldgrjydfskytlygjhdkhgdhd",
    "expired": 1491374355
}

功能演示

http://www.robotscloud.com/products/Func_show

results matching ""

    No results matching ""