嵌入页面需要用户token刷新标识refresh_token,refresh_token获取请参考3.2登录接口说明 第三方使用iframe 嵌入HAI平台web页面, 嵌入URL填写HAI平台首页URL(base_url/aiot/#/login?refresh_token=登录获取到的refresh_token),HAI平台会根据refresh_token获取token并维护获取token的生命周期,错误的refresh_token会导致HAI平台回退到登录页面
http://192.168.18.124/aiot/#/login?refresh_token=FJAYGIF0V4Q_TXAZ12CX2A
以下http请求需要以json格式传送和接收,固定参数head需标注
Accept:application/json,
Content-Type:application/json,
Authorization:Bear xxxxxxxxxxxxxxx(登录时获取的access_token)
{
"error": "error: wrong",
"code": 401,
"message": "error: wrong",
"details": []
}