获取token
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取公共请求头的token值</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>接入网关/api/getToken</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<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;">secret</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密钥</td>
</tr>
<tr>
<td style="text-align: left;">nonce</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>6至9位数字或字母的随机字符串</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 10000,
&quot;msg&quot;: &quot;请求成功!&quot;,
&quot;data&quot;: {
&quot;token&quot;: &quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxMjM0NTYiLCJhdWQiOiJ4Q2l0S2N2ZkZJWnJXRGprcVlzT0NmVE5TckRLZVN6WSIsImlhdCI6MTcxNjcxMTkzMCwibmJmIjoxNzE2NzExOTI5LCJleHAiOjE3MTc1NzU5MzAsImRhdGEiOnsiY2xpZW50X2lkIjoiMjQwNTEzMjEwNDI4OTE2NiJ9fQ.PufXXW9BZ9z0rqX2WurfkhbRop1v3jFkIJdNoYdMIgU&quot;
}
}</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值,有效期15天,建议在token到期前刷新token</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>