百高高尔夫

百高高尔夫


用户注册

<h5>简要描述</h5> <ul> <li>注册为百高会员,返回注册用户token</li> </ul> <h5>请求url</h5> <p><code>https://api.baigolf.com/v3/user/add</code></p> <h5>请求方式</h5> <ul> <li>POST</li> </ul> <h5>请求参数</h5> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>access_token</td> <td>是</td> <td>string</td> <td>通过service_id和service_key获取的access_token</td> </tr> <tr> <td>country_code</td> <td>是</td> <td>string</td> <td>国家区号,如:86 。不填默认为86</td> </tr> <tr> <td>phone</td> <td>是</td> <td>string</td> <td>手机号,如:15888888888</td> </tr> </tbody> </table> <h5>返回参数详情</h5> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>error</td> <td>array</td> <td></td> </tr> <tr> <td>error.code</td> <td>string</td> <td>错误代码</td> </tr> <tr> <td>error.message</td> <td>string</td> <td>错误描述</td> </tr> <tr> <td>data</td> <td>array</td> <td></td> </tr> <tr> <td>data.token</td> <td>string</td> <td>当前用户识别码</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code class="language-json">{ &amp;quot;error&amp;quot;: { &amp;quot;code&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;&amp;quot; }, &amp;quot;data&amp;quot;: { &amp;quot;token&amp;quot;: &amp;quot;V3_c9fc3766bkjdb8254496e9ca622b4cfce88c3410dd5c&amp;quot;, } }</code></pre>

页面列表

ITEM_HTML