指定号码
<p>[TOC]</p>
<h3>1. 指定手机号</h3>
<ul>
<li>更新时间:2022年10月12日 20时30分20秒</li>
<li>此接口使用场景,当某个号码需要再次接吗,需要调用该接口进行占用,然后请求读取短信接口</li>
</ul>
<p><strong>请求URL </strong></p>
<ul>
<li><code>https://服务器地址/sms/?api=getPhone&amp;token=用户令牌&amp;sid=项目ID&amp;phone=号码</code></li>
</ul>
<p><strong>请求方式</strong></p>
<ul>
<li>GET/POST</li>
</ul>
<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 style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">令牌</td>
</tr>
<tr>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td style="text-align: left;">项目ID</td>
</tr>
<tr>
<td style="text-align: left;">phone</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td style="text-align: left;">号码</td>
</tr>
<tr>
<td style="text-align: left;">author</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">开发者账号(置入该参数获取消费分成)</td>
</tr>
</tbody>
</table>
<p><strong>返回成功示例</strong></p>
<pre><code>{
&quot;code&quot;: &quot;0&quot;,
&quot;msg&quot;: &quot;成功&quot;,
&quot;sid&quot;: &quot;22563&quot;,
&quot;country_name&quot;: &quot;中国&quot;,
&quot;country_code&quot;: &quot;cn&quot;,
&quot;country_qu&quot;: &quot;+86&quot;,
&quot;phone&quot;: &quot;132548966&quot;,
&quot;sp&quot;: &quot;联通&quot;,
&quot;phone_gsd&quot;: &quot;上海 上海&quot;
}</code></pre>
<p><strong>返回参数说明 </strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td>状态码,code=0,code=其他为失败</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td>描述</td>
</tr>
<tr>
<td style="text-align: left;">sid</td>
<td>项目ID</td>
</tr>
<tr>
<td style="text-align: left;">country_name</td>
<td>国家名称</td>
</tr>
<tr>
<td style="text-align: left;">country_code</td>
<td>国家代码</td>
</tr>
<tr>
<td style="text-align: left;">country_qu</td>
<td>国家区号</td>
</tr>
<tr>
<td style="text-align: left;">phone</td>
<td>号码</td>
</tr>
<tr>
<td style="text-align: left;">sp</td>
<td>号码运营商</td>
</tr>
<tr>
<td style="text-align: left;">phone_gsd</td>
<td>号码归属地</td>
</tr>
</tbody>
</table>
<p><strong>备注 </strong></p>
<ul>
<li>code=0,code=其他为失败</li>
</ul>