文档中心 > API类目 > 阿里通信API

alibaba.aliqin.pns.mobile.get (网关取号)

网关取号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
customer_id Number 必须 3213124 客户ID
token String 必须 41243124rereqwrwq token
out_id String 可选 1231 外部流水号

响应参数

名称 类型 示例值 描述
result AccessResponse 返回结果
  • └ message
  • String
  • 成功
  • 返回码描述
  • module
  • GetMobileResultDto
  • 结果
  • └ mobile
  • String
  • 13000000000
  • 手机号
  • └ code
  • String
  • OK
  • 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinPnsMobileGetRequest req = new AlibabaAliqinPnsMobileGetRequest();
req.setCustomerId(3213124L);
req.setToken("41243124rereqwrwq");
req.setOutId("1231");
AlibabaAliqinPnsMobileGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_aliqin_pns_mobile_get_response>
    <result>
        <message>成功</message>
        <module>
            <mobile>13000000000</mobile>
        </module>
        <code>OK</code>
    </result>
</alibaba_aliqin_pns_mobile_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部