文档中心 > API类目 > 本地生活用户增长互动业务

alibaba.alsc.growth.interactive.mini.game.index.query (小游戏首页查询接口)

小游戏首页查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mini_game_index_request MiniGameIndexRequest 必须 小游戏首页请求对象
  • └ act_id
  • String
  • 必须
  • 1341341
  • 活动id
  • └ biz_scene
  • String
  • 必须
  • IDIOM
  • 业务场景
  • └ game_acc_id
  • String
  • 可选
  • 21341
  • 游戏账号id,仅成语场景使用,该场景下必填
  • └ collection_ids
  • String []
  • 必须
  • ["12324"]
  • 组建集id集合
  • └ open_id
  • String
  • 可选
  • AAFh0z9sAOAaPm8T4L3O22tX
  • openId,非成语场景使用,必填

响应参数

名称 类型 示例值 描述
trace_id String dsfs 链路id
data MiniGameIndexDTO 服务端返回数据
  • property_list
  • PropertyDTO []
  • 1110
  • 资产集合
  • └ property_id
  • String
  • 123
  • 资产id
  • └ property_name
  • String
  • 金币
  • 资产名称
  • └ property_biz_type
  • String
  • GAME_REMAIN_INTEGRAL
  • 资产业务类型
  • └ amount
  • Number
  • 1000
  • 资产值
biz_success Boolean true 接口调用是否成功
biz_error_code String SYSTEM_ERROR 错误码
biz_error_msg String 系统异常 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest req = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest();
AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequest obj1 = new AlibabaAlscGrowthInteractiveMiniGameIndexQueryRequest.MiniGameIndexRequest();
obj1.setActId("1341341");
obj1.setBizScene("IDIOM");
obj1.setGameAccId("21341");
obj1.setCollectionIds(""12324"");
obj1.setOpenId("AAFh0z9sAOAaPm8T4L3O22tX");
req.setMiniGameIndexRequest(obj1);
AlibabaAlscGrowthInteractiveMiniGameIndexQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_growth_interactive_mini_game_index_query_response>
    <trace_id>dsfs</trace_id>
    <data>
        <property_list>
            <property_d_t_o>
                <property_id>123</property_id>
                <property_name>金币</property_name>
                <property_biz_type>GAME_REMAIN_INTEGRAL</property_biz_type>
                <amount>1000</amount>
            </property_d_t_o>
        </property_list>
    </data>
    <biz_success>true</biz_success>
    <biz_error_code>SYSTEM_ERROR</biz_error_code>
    <biz_error_msg>系统异常</biz_error_msg>
</alibaba_alsc_growth_interactive_mini_game_index_query_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

返回
顶部