【12】取续期Token
<p>[TOC]</p>
<h5>接口状态</h5>
<ul>
<li><code>正常</code></li>
</ul>
<h5>框架版本</h5>
<ul>
<li><code>≥ 2.0.5.0</code></li>
</ul>
<h5>更新时间</h5>
<ul>
<li><code>2024/12/16</code></li>
</ul>
<h5>调用额度</h5>
<ul>
<li><code>免额度</code></li>
</ul>
<h5>简要描述</h5>
<ul>
<li>将二维码扫码登录后的token转化为cookie</li>
</ul>
<h5>DLL调用例子</h5>
<pre><code>Cookie_GetRenewalToken (&quot;$userNick$&quot;,&quot;8ef9c6b1044c6e777a516ad64d7444ec&quot;)</code></pre>
<h5>易语言模块调用例子</h5>
<pre><code>SaiNiu.Cookie.取续期Token(&quot;$userNick$&quot;,&quot;8ef9c6b1044c6e777a516ad64d7444ec&quot;)</code></pre>
<h5>POST调用例子</h5>
<pre><code>http://127.0.0.1:3030/SaiNiuApi/Cookie</code></pre>
<pre><code>&amp;post=GetRenewalToken&amp;data={&quot;userNick&quot;:&quot;$userNick$&quot;,&quot;logonToken&quot;:&quot;8ef9c6b1044c6e777a516ad64d7444ec&quot;}</code></pre>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<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;">userNick</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">千牛账号,使用$userNick$自动选择</td>
<td>tb123456</td>
</tr>
<tr>
<td style="text-align: left;">logonToken</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">二维码状态轮询id</td>
<td>8ef9c6b1044c6e777a516ad64d7444ec</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{&quot;code&quot;:200,&quot;data&quot;:{&quot;codeGroup&quot;:&quot;other&quot;,&quot;actionType&quot;:&quot;OTHER&quot;,&quot;returnValue&quot;:{&quot;data&quot;:&quot;[cookies]&quot;,&quot;taobaoNick&quot;:&quot;tb123456&quot;,&quot;deviceToken&quot;:{&quot;key&quot;:&quot;idc11_V1_1734351818043_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;salt&quot;:&quot;24585574&amp;xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;},&quot;displayNick&quot;:&quot;tb123456&quot;,&quot;sid&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;mobile&quot;:&quot;xxxxxxxxxxxx&quot;,&quot;email&quot;:&quot;xxxxxxxxxxx@qq.com&quot;,&quot;hid&quot;:123456,&quot;extMap&quot;:{&quot;biometricId&quot;:&quot;&quot;,&quot;encryptUserId&quot;:&quot;&quot;,&quot;rootLoginType&quot;:&quot;qrCodeLogin&quot;,&quot;hasPwd&quot;:&quot;true&quot;,&quot;loginType&quot;:&quot;qrCodeLogin&quot;,&quot;headPicLink&quot;:&quot;https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=123456&amp;width=160&amp;height=160&amp;type=sns&quot;},&quot;showLoginId&quot;:&quot;tb123456&quot;,&quot;site&quot;:0,&quot;transparent&quot;:false},&quot;message&quot;:&quot;成功&quot;,&quot;code&quot;:3000},&quot;ret&quot;:[&quot;SUCCESS::成功&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;">code</td>
<td style="text-align: left;">整数型</td>
<td>返回结果,成功=200,失败≠200</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">文本型</td>
<td>结果说明,调用成功或失败原因</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">文本型</td>
<td>返回结果,data.returnValue.data为cookies</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>