文档中心 > API类目 > 淘宝小程序API

taobao.miniapp.model.clientinfo.create (新增端类型)

提供给支付宝,用于同步手淘租户的端信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req ClientInfoInsertReq 可选 参数类
  • └ gmt_modified
  • Date
  • 可选
  • 2019-01-01 12:12:12
  • 修改时间
  • └ client_id
  • Number
  • 可选
  • 1000
  • id
  • └ prefix
  • String
  • 可选
  • AP
  • 缓存前缀
  • └ bundle_id
  • String
  • 可选
  • com.alipay.alipaywallet
  • └ name
  • String
  • 可选
  • 支付宝客户端
  • 名称
  • └ gmt_create
  • Date
  • 可选
  • 2019-01-01 12:12:12
  • 创建时间
  • └ config
  • String
  • 可选
  • {}
  • 配置

响应参数

名称 类型 示例值 描述
result Boolean true 结果值

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappModelClientinfoCreateRequest req = new MiniappModelClientinfoCreateRequest();
MiniappModelClientinfoCreateRequest.ClientInfoInsertReq obj1 = new MiniappModelClientinfoCreateRequest.ClientInfoInsertReq();
obj1.setGmtModified(StringUtils.parseDateTime("2019-01-01 12:12:12"));
obj1.setClientId(1000L);
obj1.setPrefix("AP");
obj1.setBundleId("com.alipay.alipaywallet");
obj1.setName("支付宝客户端");
obj1.setGmtCreate(StringUtils.parseDateTime("2019-01-01 12:12:12"));
obj1.setConfig("{}");
req.setReq(obj1);
MiniappModelClientinfoCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_model_clientinfo_create_response>
    <result>true</result>
</miniapp_model_clientinfo_create_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

返回
顶部