关于ios:智汀家庭云开发指南GolangHTTP-API-接口规范

3次阅读

共计 229 个字符,预计需要花费 1 分钟才能阅读完成。

1. 接口鉴权

应用 smartassistant 接口,需将用户凭证 smart-assistant-token,放在 http 申请的 header 中。格局如下:

"smart-assistant-token":"xxx"

2. 返回规范数据结构

smartassistant 接口均返回 JSON 格局数据, 格局如下:

 {
 "status":0,  // 状态码
 "reason":"", // 状态码形容"data":{}    // 所有业务数据返回都蕴含在 data 对象中}

3. 错误码列表

附录:错误码列表

正文完
 0