物联网平台外部访问数据定义


获取AccessToken

<p><strong>日志:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">版本号</th> <th style="text-align: left;">撰写人</th> <th style="text-align: left;">时间</th> <th>修改内容</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">VA 1.0.0</td> <td style="text-align: left;">lee</td> <td style="text-align: left;">2019-12-17 10:30:28 星期二</td> <td>创建</td> </tr> </tbody> </table> <p><strong>简要描述:</strong> </p> <ul> <li>第三方获取AccessToken接口 </li> </ul> <p><strong>注意事项:</strong> </p> <ul> <li><strong><code>token</code> 默认一周有效期, 在原来的有效期间重新获取会使上一次获取的<code>token</code>失效</strong></li> <li><strong>获取到的<code>token</code>,在其他接口中均需传递,参数位置在请求参数中,非Header</strong></li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>https://www.zsdcloud.cn:8443/openApi/getAccessToken.action</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">accessId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>物联网平台分配的请求秘钥。<strong>如何获取accessId</strong>:[接入步骤](<a href="https://www.showdoc.com.cn/382341824968230/11558658097380690">https://www.showdoc.com.cn/382341824968230/11558658097380690</a> &quot;接入步骤&quot;)</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;statusCode&amp;quot;: 200, &amp;quot;message&amp;quot;: &amp;quot;Success&amp;quot;, &amp;quot;result&amp;quot;: &amp;quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjgxNzI2NDI4NjAsInBheWxvYWQiOiIxIn0.31zwlEdRXR5wMspxMxbKWo3n9uYpqNfXjJYGBnB2et0&amp;quot; }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">statusCode</td> <td style="text-align: left;">int</td> <td style="text-align: left;">状态码描述,200代表成功,更多状态码信息请看首页 <strong>错误代码描述</strong> 文档</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">String</td> <td style="text-align: left;">详细信息</td> </tr> <tr> <td style="text-align: left;">result</td> <td style="text-align: left;">String</td> <td style="text-align: left;">最新的token值。<strong>注意token在其他接口中的参数位置在请求参数中</strong>,非Header</td> </tr> </tbody> </table>

页面列表

ITEM_HTML