taobao.ump.mbb.getbycode (根据营销积木块代码获取积木块)

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
code String 必须 com.taobao.ump.meta.action.discount 营销积木块code

响应参数

名称 类型 示例值 描述
mbb String {'mbb_id':1324,'name':'test'} 营销积木块的内容,通过ump sdk来进行处理

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UmpMbbGetbycodeRequest req = new UmpMbbGetbycodeRequest();
req.setCode("com.taobao.ump.meta.action.discount");
UmpMbbGetbycodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<ump_mbb_getbycode_response>
    <mbb>{&apos;mbb_id&apos;:1324,&apos;name&apos;:&apos;test&apos;}</mbb>
</ump_mbb_getbycode_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>

错误码解释

错误码 错误描述 解决方案
isv.mbb-not-exist 营销积木块不存在 确认该code为正确有效的code

API工具

如何获得此API

FAQ

返回
顶部