register
<p><strong>A brief description:</strong> </p>
<ul>
<li>interface for registering</li>
</ul>
<p><strong>Request url:</strong> </p>
<ul>
<li><code>http://xx.com/api/user/register</code></li>
</ul>
<p><strong>Method:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>Request params:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">Param</th>
<th style="text-align: left;">Required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">username</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">string</td>
<td>your username</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">string</td>
<td>your password</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">string</td>
<td>your name</td>
</tr>
</tbody>
</table>
<p><strong>A sample of result </strong></p>
<pre><code> {
&quot;error_code&quot;: 0,
&quot;data&quot;: {
&quot;uid&quot;: &quot;1&quot;,
&quot;username&quot;: &quot;12154545&quot;,
&quot;name&quot;: &quot;Jim&quot;,
&quot;groupid&quot;: 2 ,
&quot;reg_time&quot;: &quot;1436864169&quot;,
&quot;last_login_time&quot;: &quot;0&quot;,
}
}</code></pre>
<p><strong>Result params</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">Param</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>none</td>
</tr>
</tbody>
</table>
<p><strong>Remarks</strong> </p>
<ul>
<li>See the home page for more </li>
</ul>