玩瞳文档中心


进行加密传输

<p><strong>服务:</strong>api-cloud <strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/auth/key</code> <strong>请求方式:</strong>POST <strong>入参方式:</strong> Body raw方式 <strong>api开发者:</strong> 观李 <strong>是否授权登录:</strong> 是 <strong>简要描述:</strong> 当有比较敏感数据时,我们提供了对数据进行加密传输的方式。此接口在获取token前调用,取得后续所有接口调用的加密密钥。 此后的调用都需要用加密方式传输。重新登录即可重新选择是否加密。</p> <p><strong>参数:</strong></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;">appKey</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>登录的appId</td> </tr> </tbody> </table> <p><strong>备注</strong>: 无</p> <p><strong>返回示例</strong></p> <pre><code class="language-json">入参示例 { &amp;quot;appKey&amp;quot;: &amp;quot;2b1162c8-0aa8-4a32-8836-5d175e5f8ffa&amp;quot; } 查询成功示例 { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;key&amp;quot;: &amp;quot;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhJwWJWCXVrwkI/ToZh6uvzyEGXJE9ood\r\n3LmTc3MVrLdk/7V3WZihItv1WNDHPMqd5tlmZkhTbwJsXw0M74DjuInLmdOD68Cubd5TWUIAIWOz\r\nkkxOshGh7YDBhC9kn3gYo+SgTePHyWnNgi7ZgiLCcQRmVW3mCaJGizEvedMWmZmX7UtcIcsP6iXF\r\nEsut2yRY3dlenPogT/hy2B8bjZnh7rB8J0JRVtsbHzbfIS1XqYKfAMKRKcsoiBHRYhaeiuxn949p\r\nnUJkhfXqv82OQdgd3ERNmF0eHjhpQqRThRtjn2rCnsAMPrVnEw+FoAFiwX/D1NbjrlZWTC7MpstF\r\ni6W1GwIDAQAB\r\n&amp;quot; } } 查询失败示例 { &amp;quot;code&amp;quot;: 1006, &amp;quot;msg&amp;quot;: &amp;quot;generate key fail&amp;quot;, &amp;quot;data&amp;quot;: null }</code></pre> <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;">code</td> <td style="text-align: left;">int</td> <td>请求返回码 0(表示成功)</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">String</td> <td>系统返回提示</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">Object</td> <td>返回数据</td> </tr> </tbody> </table> <p><strong>key </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;">key</td> <td style="text-align: left;">String</td> <td>之后可以用该key值对appsecret先进行rsa加密再进行base64加密,来登录.如果10分钟内没用该key登录,该key值到时间就会消失,如果用该key登录了一次,该key也会消失,一个账号同一时间只能生成一个key</td> </tr> </tbody> </table> <p>&gt; &gt; &gt; &gt; &gt; &gt; </p>

页面列表

ITEM_HTML