文档中心 > API类目 > 我的小窝玩法前端类目

tmall.alihouse.marketing.points.add (我的小窝理想版添加用户积分)

我的小窝理想版添加用户积分

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
point_add_param PointAddParam 必须 积分添加参数
  • └ business_qty
  • Number
  • 可选
  • 11
  • 待增加的商业度
  • └ convenience_qty
  • Number
  • 可选
  • 12
  • 待增加的便捷度
  • └ idempotent_key
  • String
  • 必须
  • 111
  • 幂等Key
  • └ event_msg
  • String
  • 必须
  • 收取喵砖
  • 事件描述
  • └ town_code
  • String
  • 可选
  • hangzhou
  • 城镇code
  • └ event_type
  • String
  • 必须
  • collect_brick
  • 事件类型
  • └ brick_qty
  • Number
  • 可选
  • 100
  • 待增加的喵砖数
  • └ comfort_qty
  • Number
  • 可选
  • 13
  • 待增加的舒适度
  • └ player_id
  • String
  • 必须
  • 1232432524
  • 玩家ID
  • └ turntable_qty
  • Number
  • 可选
  • 100
  • 待增加的转盘数

响应参数

名称 类型 示例值 描述
response_msg String success 响应消息
response_code String 200 响应码
data PointAddDTO 响应数据
  • └ player_id
  • String
  • 1232432524
  • 玩家ID
  • └ town_code
  • String
  • hangzhou
  • 城镇
  • └ brick_qty
  • Number
  • 100
  • 喵砖数
  • └ business_qty
  • Number
  • 100
  • 商业度
  • └ comfort_qty
  • Number
  • 100
  • 舒适度
  • └ convenience_qty
  • Number
  • 100
  • 便捷度
  • └ turntable_qty
  • Number
  • 100
  • 转盘数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihouseMarketingPointsAddRequest req = new TmallAlihouseMarketingPointsAddRequest();
TmallAlihouseMarketingPointsAddRequest.PointAddParam obj1 = new TmallAlihouseMarketingPointsAddRequest.PointAddParam();
obj1.setBusinessQty(11L);
obj1.setConvenienceQty(12L);
obj1.setIdempotentKey("111");
obj1.setEventMsg("收取喵砖");
obj1.setTownCode("hangzhou");
obj1.setEventType("collect_brick");
obj1.setBrickQty(100L);
obj1.setComfortQty(13L);
obj1.setPlayerId("1232432524");
obj1.setTurntableQty(100L);
req.setPointAddParam(obj1);
TmallAlihouseMarketingPointsAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_alihouse_marketing_points_add_response>
    <response_msg>success</response_msg>
    <response_code>200</response_code>
    <data>
        <player_id>1232432524</player_id>
        <town_code>hangzhou</town_code>
        <brick_qty>100</brick_qty>
        <business_qty>100</business_qty>
        <comfort_qty>100</comfort_qty>
        <convenience_qty>100</convenience_qty>
        <turntable_qty>100</turntable_qty>
    </data>
</tmall_alihouse_marketing_points_add_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

返回
顶部