电信iot自动授权
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
trace_id | String | 必须 | 95bd7d9658934ec989c0e9e2827a15be | 调用链id,用于全链路跟踪 | |
ct_partner_id | String | 必须 | A0QWE1GH | 电信音箱平台分配给合作方的合作伙伴ID | |
device_id | String | 必须 | AABBCC112233 | 合作方音箱唯一标识,该标识传值为音箱CTEI。 | |
token | String | 必须 | XXXXX | 访问令牌,用于校验接口调用者身份,做到不可否认性 | |
time | String | 必须 | 2016-09-18 16:25:50 | 请求时间,格式:yyyy-MM-dd HH:mm:ss | |
ty_account | String | 必须 | fdsafdrgfre | 电信家居平台用户标识加密字符串 | |
extra_param | Json | 可选 | {} | 扩展参数,由厂家根据业务自定义内容 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result_code | Number | 200 | 错误码 |
message | String | 错误信息 | success |
result | Boolean | true | 是否成功 |
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAilabsTmallgenieThirdTelecomAutoauthRequest req = new AlibabaAilabsTmallgenieThirdTelecomAutoauthRequest(); req.setTraceId( "95bd7d9658934ec989c0e9e2827a15be" ); req.setCtPartnerId( "A0QWE1GH" ); req.setDeviceId( "AABBCC112233" ); req.setToken( "XXXXX" ); req.setTime( "2016-09-18 16:25:50" ); req.setTyAccount( "fdsafdrgfre" ); req.setExtraParamString( "{}" ); AlibabaAilabsTmallgenieThirdTelecomAutoauthResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < alibaba_ailabs_tmallgenie_third_telecom_autoauth_response > < result_code >200</ result_code > < message >错误信息</ message > < result >true</ result > </ alibaba_ailabs_tmallgenie_third_telecom_autoauth_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|