文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.ride.campus.relation.get (根据服务区查询服务区三方关系)

根据服务区查询服务区三方关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 CampusRelationGetRequest 可选 数据
  • └ campus_area_code
  • Number
  • 可选
  • 13
  • 校区

响应参数

名称 类型 示例值 描述
result Result 结果
  • └ code
  • String
  • 1
  • 代码
  • data
  • CampusRelationGetResponse
  • 数据
  • └ campus_area_code
  • Number
  • 1
  • 校区
  • └ investor
  • String
  • z1
  • 资方
  • └ typical_provider
  • String
  • t1
  • tp商
  • └ fail
  • String
  • false
  • 失败
  • └ msg
  • String
  • 消息
  • 消息
  • └ page_num
  • String
  • 1
  • 分页
  • └ success
  • String
  • true
  • 成功
  • └ total_num
  • String
  • 12
  • 条数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareRideCampusRelationGetRequest req = new TmallXiaoyuanShareRideCampusRelationGetRequest();
TmallXiaoyuanShareRideCampusRelationGetRequest.CampusRelationGetRequest obj1 = new TmallXiaoyuanShareRideCampusRelationGetRequest.CampusRelationGetRequest();
obj1.setCampusAreaCode(13L);
req.setParam0(obj1);
TmallXiaoyuanShareRideCampusRelationGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_xiaoyuan_share_ride_campus_relation_get_response>
    <result>
        <code>1</code>
        <data>
            <campus_area_code>1</campus_area_code>
            <investor>z1</investor>
            <typical_provider>t1</typical_provider>
        </data>
        <fail>false</fail>
        <msg>消息</msg>
        <page_num>1</page_num>
        <success>true</success>
        <total_num>12</total_num>
    </result>
</tmall_xiaoyuan_share_ride_campus_relation_get_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

返回
顶部