跳至内容
中消云物联网研究院
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
>
v_interface_gettoken_old
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
<h3><span style="font-family: 黑体; font-size: 14pt;">[[wiki:oldhome|返回]]<br /></span></h3><h3><span style="font-family: 黑体; font-size: 14pt;">获取API_TOKEN</span></h3><h5><span style="font-family: 黑体;"><span style="font-size: 16px;">(1).接口调用请求说明</span></span></h5><p><strong><span style="font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体;">请求方式</span></span><span style="font-family: 宋体; font-size: 10.5pt;">:</span></strong><span style="font-family: 宋体; font-size: 10.5pt;">POST</span></p><p><strong><span style="font-family: 宋体; font-size: 10.5pt;">请求路径:</span></strong><span style="font-family: 宋体; font-size: 10.5pt;">{authServerUrl}/api/1.0</span><span style="font-family: Calibri; font-size: 10.5pt;">/auth/getToken</span></p><p><strong><span style="font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体;">请求参数:</span></span></strong></p><table border="1" cellspacing="0"><tbody><tr><td style="width: 67.2pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">参数</span></p></td><td style="width: 62.95pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">必填<span style="font-family: Calibri;">\</span>选填</span></p></td><td style="width: 91.1pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">类型</span></p></td><td style="width: 277pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">描述</span></p></td></tr><tr><td style="width: 67.2pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">appkey</span></p></td><td style="width: 62.95pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">必填</span></p></td><td style="width: 91.1pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">string</span></p></td><td style="width: 277pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">24位应用码</span></p></td></tr><tr><td style="width: 67.2pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">masterSecret</span></p></td><td style="width: 62.95pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">必填</span></p></td><td style="width: 91.1pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">string</span></p></td><td style="width: 277pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">30位主密钥</span></p></td></tr></tbody></table><p><strong><span style="font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体;">返回参数:</span></span></strong></p><table border="1" cellspacing="0"><tbody><tr><td style="width: 110.45pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">参数</span></p></td><td style="width: 82.4pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">名称</span></p></td><td style="width: 72.6pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">类型</span></p></td><td style="width: 221.5pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">备注</span></p></td></tr><tr><td style="width: 110.45pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">code</span></p></td><td style="width: 82.4pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">返回码</span></p></td><td style="width: 72.6pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">string</span></p></td><td style="width: 221.5pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;"> </span></p></td></tr><tr><td style="width: 110.45pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">message</span></p></td><td style="width: 82.4pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">提示语</span></p></td><td style="width: 72.6pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">string</span></p></td><td style="width: 221.5pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;"> </span></p></td></tr><tr><td style="width: 110.45pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">data</span></p></td><td style="width: 82.4pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">返回数据</span></p></td><td style="width: 72.6pt;"><p><span style="font-family: Calibri;"><span style="font-size: 14px;">object</span></span></p></td><td style="width: 221.5pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;"> </span></p></td></tr><tr><td style="width: 110.45pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">--</span><span style="font-family: Calibri; font-size: 10.5pt;">apiToken</span></p></td><td style="width: 82.4pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">API调用凭证</span></p></td><td style="width: 72.6pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">string</span></p></td><td style="width: 221.5pt;"><p><span style="font-family: Arial; color: rgb(51, 51, 51); font-size: 10.5pt;">UUID</span></p></td></tr></tbody></table><p><strong><span style="font-family: 宋体; font-size: 10.5pt;">示例:</span></strong></p><p><strong><span style="font-family: 宋体; font-size: 10.5pt;">示例地址:</span></strong><span style="font-family: Calibri; font-size: 10.5pt;">https:/</span><span style="font-family: 宋体; font-size: 10.5pt;">/</span><span style="font-family: Calibri; font-size: 10.5pt;">xf.tandatech.com:4433/thirdPartyApi</span><span style="font-family: 宋体; font-size: 10.5pt;">/login/api/1.0</span><span style="font-family: Calibri; font-size: 10.5pt;">/auth/getToken</span></p><p><strong><span style="font-family: Calibri; font-size: 10.5pt;">body:</span></strong></p><p><span style="font-family: Calibri; font-size: 9pt;">{</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> "appkey": "xxxxxxxxxxxxxxxxxxxxxxxx",</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> "masterSecret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"</span></p><p><span style="font-family: Calibri; font-size: 9pt;">}</span></p><p><strong><span style="font-family: 宋体; font-size: 10.5pt;">示例结果:</span></strong></p><p><span style="font-family: Calibri; font-size: 9pt;">{</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> "code": "000000",</span></p><p><span style="font-family: Consolas; font-size: 9pt;"> "message": "</span><span style="font-family: 微软雅黑; font-size: 9pt;">认证成功</span><span style="font-family: Consolas; font-size: 9pt;">",</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> "data": {</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> "apiToken": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"</span></p><p><span style="font-family: Calibri; font-size: 9pt;"> }</span></p><p><span style="font-family: Calibri; font-size: 9pt;">}</span></p><p><span style="font-family: 宋体; font-size: 10.5pt;">错误时平台会返回错误码等信息</span></p><h4><span style="font-family: 黑体; font-size: 12pt;">(2).返回码说明</span></h4><table border="1" cellspacing="0"><tbody><tr><td style="width: 97.55pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">返回码</span></p></td><td style="width: 400.85pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">描述</span></p></td></tr><tr><td style="width: 97.55pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">000000</span></p></td><td style="width: 400.85pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">请求成功</span></p></td></tr><tr><td style="width: 97.55pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">P01000</span></p></td><td style="width: 400.85pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">输入参数错误</span></p></td></tr><tr><td style="width: 97.55pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">L02100</span></p></td><td style="width: 400.85pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">appkey无效</span></p></td></tr><tr><td style="width: 97.55pt;"><p><span style="font-family: Calibri; font-size: 10.5pt;">L02201</span></p></td><td style="width: 400.85pt;"><p><span style="font-family: 宋体; font-size: 10.5pt;">appkey与<span style="font-family: Calibri;">masterSecret</span>不匹配</span></p></td></tr></tbody></table>
v_interface_gettoken_old.txt
· 最后更改: 2020/11/14 03:37 由
admin
页面工具
显示页面
修订记录
反向链接
回到顶部