次幂数据定制服务接口文档

API接口


获取token

<p><strong>简要描述:</strong> </p> <p>用户认证,调用其他接口前必须先获取到token认证值</p> <p><strong>请求URL:</strong> </p> <ul> <li><code>/api/v2/token</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>body参数:</strong></p> <p>注:body 是<code>json</code>格式的数据, 请求头必须指定<code>Content-Type</code> 为 <code>application/json</code></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;">app_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户名</td> </tr> <tr> <td style="text-align: left;">app_secret</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>密钥</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;access_token&amp;quot;:&amp;quot;xxxxx&amp;quot; }, &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot; }</code></pre> <p>注:token的有效期为7天</p> <p><strong>返回参数说明</strong> </p> <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>访问凭证</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>请求体内容格式使用'application/json'</li> <li>app_id 与 app_secret 获取请联系商务</li> </ul>

页面列表

ITEM_HTML