注意:以下文档只适用于TOP接口,请谨慎使用!

taobao.caipiao.lotterytypes.get (获取可用的彩种列表)

获取彩票系统支持的可用于赠送的彩种列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
results LotteryType [] 彩种的数据结构
  • └ id
  • Number
  • 1
  • 彩种ID
  • └ name
  • String
  • 双色球
  • 彩种名称
total_results Number 1 彩种个数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CaipiaoLotterytypesGetRequest req = new CaipiaoLotterytypesGetRequest();
CaipiaoLotterytypesGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<caipiao_lotterytypes_get_response>
    <results>
        <lottery_type>
            <id>1</id>
            <name>双色球</name>
        </lottery_type>
    </results>
    <total_results>1</total_results>
</caipiao_lotterytypes_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

返回
顶部