taobao.ump.mbb.getbyid (获取营销积木块)

根据积木块id获取营销积木块。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
id Number 必须 2345 积木块的id

响应参数

名称 类型 示例值 描述
mbb String {'mbb_id':1324,'name':'test'} 营销积木块定义信息,可以通过ump sdk里面的MBB.fromJson来处理

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UmpMbbGetbyidRequest req = new UmpMbbGetbyidRequest();
req.setId(2345L);
UmpMbbGetbyidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
<ump_mbb_getbyid_response>
    <mbb>{&apos;mbb_id&apos;:1324,&apos;name&apos;:&apos;test&apos;}</mbb>
</ump_mbb_getbyid_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案
isv.not-exist 不存在该id的积木块 传入正确有效的id或code

API工具

如何获得此API

FAQ

返回
顶部