阅达馆藏API

阅达馆藏API


刷新token

<h1>开发者</h1> <ul> <li>罗恒山</li> </ul> <h1>说明</h1> <ul> <li>登录状态下,刷新token</li> </ul> <h1>请求</h1> <ul> <li>Endpoint: <code>/api/auth/refresh</code></li> <li>Method:GET</li> </ul> <h1>返回值说明</h1> <pre><code>{ &amp;quot;status_code&amp;quot;: 200, &amp;quot;message&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;access_token&amp;quot;: &amp;quot;xxxxxxx&amp;quot;, &amp;quot;token_type&amp;quot;: &amp;quot;Bearer&amp;quot;, &amp;quot;expires_in&amp;quot;: 3600, &amp;quot;restful&amp;quot;: true } }</code></pre> <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;">access_token</td> <td style="text-align: left;">string</td> <td>token</td> </tr> <tr> <td style="text-align: left;">token_type</td> <td style="text-align: left;">string</td> <td>token类型</td> </tr> <tr> <td style="text-align: left;">expires_in</td> <td style="text-align: left;">int</td> <td>过期时间(秒)</td> </tr> <tr> <td style="text-align: left;">restful</td> <td style="text-align: left;">bool</td> <td></td> </tr> </tbody> </table> <h1>备注</h1> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML