设备端获取token
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{nimiProgBaseURL}}/devapi/getDeviceToken</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求参数示例</h5>
<pre><code>{
"mac": "7778888"
}
</code></pre>
<h5>成功返回示例</h5>
<pre><code>{
"code": 200,
"data": {
"deviceInfo": {
"createTime": "2021-10-22 19:41:50",
"updateTime": null,
"deviceId": 4,
"deviceMac": "7778888",
"userId": 1,
"deviceType": 1,
"deviceName": "7778888",
"subtitleEnabled": false,
"subtitlePosition": 1,
"subtitleSize": 1,
"subtitleSpeed": 1,
"address": null,
"subtitleContent": null,
"lng": null,
"lat": null,
"lastOnlineTime": null,
"coverUrl": null,
"store": null
},
"token": "eyJhbGciOiJIUzUxMiJ9.eyJyYW5kb21LZXkiOiJoamJ6b2UiLCJzdWIiOiI3Nzc4ODg4IiwiZXhwIjoxNjM2OTM5MTg1LCJpYXQiOjE2MzYzMzQzODV9.0_ziEDGypdlNzrPNKoCRVhhICnKpk7IYB-1rGVGBRGopp8p3w_mcP-_Jye1c2flb4YWBxbj4zt4ViwOsX2t-5w"
},
"msg": "获取成功"
}
</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">string</td>
<td>设备token</td>
</tr>
</tbody>
</table>