mobileClient/${groupId}/camera/${serialNumber}/skeleton/${streamToken}
通过这个API文档说明获取Bearer token:
http://www.sunsili.com/doc_5.html
通过这个API文档说明获取groupID cameraID streamToken:
http://www.sunsili.com/doc_3.html
获取oaunth Bearer token;
获取roomID;
获取cameraID;
获取streamtoken;
获取mqttAccount相关信息,基于MQTT的Web获取火柴人实时数据并播放详细讲了,这里不讲了;
Content-Type:application/x-www-form-urlencoded
参数:
client_id:Am2H4a****CjF
client_secret:PL2F9P***********vrJIt2
scope:camera:write person:write alert:write user:write group:write invitation:write room:write camera:read person:read alert:read user:read group:read invitation:read room:read person_info:write
grant_type:client_credentials
access_token
也就是我们费尽心思,写接口要获取的东西,有了它才进行下一步,下面每一步都要用到
如果请求失败呢,请依如下说明,排除,可参考文档:火柴人传感器API对接常见问题FAQ(1)
还有group_id
2. 获取roomID
https://api.ailecare.cn/v1.0/rooms Authorization:Bearer 接上面获取的access_token 参数: 都是选项填,可为空
3. 获取streamtoken
https://api.ailecare.cn/v1.0/rooms/roomId/cameras Authorization:Bearer 接上面获取的access_token 参数: roomId 必填,填地址,由上一步获取 其余都是选项填,可为空
4. 获取streamtoken
https://api.ailecare.cn/v1.0/cameras/cameraId/streamtoken Authorization:Bearer 接上面获取的access_token 参数: 其余都是选项填,可为空
参考资料
火柴人摄像头Skeleton在线OAuthAPI文档_SUNSHINE SILICON 火柴人摄像头Skeleton在线API文档_SUNSHINE SILICON