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

alibaba.wtt.alicard.youku.freeflow.get (优酷免流查询)

优酷免流查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
free_mobile_query FreeMobileQuery 可选 查询入参
  • └ app_name
  • String
  • 必须
  • youku
  • 应用名
  • └ isp_code
  • String
  • 必须
  • unicom
  • 运营商编码
  • └ phone_number
  • String
  • 必须
  • 18668209772
  • 手机号
  • └ from_user_code
  • String
  • 必须
  • YKFreeFlowSDK
  • 业务方code
  • └ user_nick
  • String
  • 可选
  • 张三
  • 淘宝会员名
  • └ user_id
  • String
  • 可选
  • 123123
  • 淘宝会员id
  • └ imsi
  • String
  • 可选
  • 86212312312921
  • 卡号

响应参数

名称 类型 示例值 描述
result CommonResult result result
  • model
  • FreeFlowStatusDto
  • model
  • model
  • └ ext_data
  • String
  • {"a":"12312"}
  • extData
  • └ can_receive_rights_list
  • String []
  • 1,2
  • canReceiveRightsList
  • └ rights_list
  • String []
  • 1,2
  • rightsList
  • └ date
  • Date
  • null
  • Date
  • └ cached
  • Boolean
  • true
  • cached
  • └ effective_time
  • Date
  • null
  • effectiveTime
  • └ card_type
  • String
  • aliBaoCard
  • cardType
  • └ isp_code
  • String
  • unicom
  • ispCode
  • └ phone_number
  • String
  • 1818668209772
  • phoneNumber
  • └ desc
  • String
  • 成功
  • desc
  • └ code
  • String
  • IE001
  • code
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWttAlicardYoukuFreeflowGetRequest req = new AlibabaWttAlicardYoukuFreeflowGetRequest();
AlibabaWttAlicardYoukuFreeflowGetRequest.FreeMobileQuery obj1 = new AlibabaWttAlicardYoukuFreeflowGetRequest.FreeMobileQuery();
obj1.setAppName("youku");
obj1.setIspCode("unicom");
obj1.setPhoneNumber("18668209772");
obj1.setFromUserCode("YKFreeFlowSDK");
obj1.setUserNick("张三");
obj1.setUserId("123123");
obj1.setImsi("86212312312921");
req.setFreeMobileQuery(obj1);
AlibabaWttAlicardYoukuFreeflowGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wtt_alicard_youku_freeflow_get_response>
    <result>
        <model>
            <ext_data>{&quot;a&quot;:&quot;12312&quot;}</ext_data>
            <can_receive_rights_list>
                <string>1</string>
                <string>2</string>
            </can_receive_rights_list>
            <rights_list>
                <string>1</string>
                <string>2</string>
            </rights_list>
            <date>null</date>
            <cached>true</cached>
            <effective_time>null</effective_time>
            <card_type>aliBaoCard</card_type>
            <isp_code>unicom</isp_code>
            <phone_number>1818668209772</phone_number>
        </model>
        <desc>成功</desc>
        <code>IE001</code>
        <success>true</success>
    </result>
</alibaba_wtt_alicard_youku_freeflow_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

返回
顶部