账户信息
<h1>账户信息</h1>
<h2>简要描述</h2>
<p>该API用于获取用户的账户信息,包括账户ID(APPID)、用户名、余额及账户等级等。</p>
<h2>请求URL</h2>
<pre><code>http://域名/api.php</code></pre>
<h2>请求方式</h2>
<ul>
<li>POST</li>
</ul>
<h2>签名</h2>
<p>请求需要使用MD5签名,签名方式为:</p>
<pre><code>md5(user_id + api_key)</code></pre>
<h2>参数</h2>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>func</td>
<td>是</td>
<td>方法名称 ,固定值 user_info</td>
</tr>
<tr>
<td>user_id</td>
<td>是</td>
<td>账户ID,同APPID</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>签名</td>
</tr>
</tbody>
</table>
<h2>返回示例</h2>
<pre><code class="language-json">{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: {
&quot;api_key&quot;: &quot;47123142d082123113b743e42d&quot;,
&quot;username&quot;: &quot;1281380931&quot;,
&quot;APPID&quot;: 18,
&quot;user_id&quot;: 18,
&quot;money&quot;: 2.64
}
}</code></pre>
<h2>返回参数说明</h2>
<table>
<thead>
<tr>
<th>参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>状态码,固定返回1</td>
</tr>
<tr>
<td>msg</td>
<td>操作提示</td>
</tr>
<tr>
<td>APPID</td>
<td>账户APPID</td>
</tr>
<tr>
<td>username</td>
<td>账户用户名</td>
</tr>
<tr>
<td>money</td>
<td>账户余额</td>
</tr>
<tr>
<td>api_key</td>
<td>API key</td>
</tr>
</tbody>
</table>