taobao.guangguang.content.relation.id.get (获取光合用户关系id)

获取光合用户关系id

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_relation_open_req UserRelationOpenReq 必须 请求参数
  • └ gids
  • String []
  • 必须
  • 123
  • 逛逛id

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • isv.invalid-parameter
  • 错误码
  • model
  • UserRelationOpenDTO []
  • 结果列表
  • └ gid
  • String
  • 123
  • 逛逛id
  • └ relation_id
  • String
  • abc
  • 关系id
  • └ error_msg
  • String
  • 参数错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
GuangguangContentRelationIdGetRequest req = new GuangguangContentRelationIdGetRequest();
GuangguangContentRelationIdGetRequest.UserRelationOpenReq obj1 = new GuangguangContentRelationIdGetRequest.UserRelationOpenReq();
obj1.setGids("123");
req.setUserRelationOpenReq(obj1);
GuangguangContentRelationIdGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
<guangguang_content_relation_id_get_response>
    <result>
        <success>true</success>
        <error_code>isv.invalid-parameter</error_code>
        <model>
            <user_relation_open_d_t_o>
                <gid>123</gid>
                <relation_id>abc</relation_id>
            </user_relation_open_d_t_o>
        </model>
        <error_msg>参数错误</error_msg>
    </result>
</guangguang_content_relation_id_get_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>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部