文档中心 > API类目 > 天猫优品

taobao.tmyp.member.privacy.info (查看会员信息 V3)

ISV 查看会员等级

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ouid String 必须 xxxxx 会员 ouid
type Number 必须 9 会员来源,旗舰店 9,宝贝猜猜 10

响应参数

名称 类型 示例值 描述
result TopResult 系统自动生成
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ msg
  • String
  • ok
  • 错误信息
  • model
  • BaseMemberInfo
  • 会员信息
  • └ last_join
  • String
  • 2021-06-01 17:09:58
  • 最近入会时间,格式:yyyy-MM-dd HH:mm:ss
  • └ expire
  • String
  • 2022-06-01 17:09:58
  • 黄金会员过期时间,格式:yyyy-MM-dd HH:mm:ss
  • └ level_name
  • String
  • 黄金会员
  • 会员名称
  • └ level
  • String
  • 2
  • 会员等级,0 非会员,1 普通会员,2 黄金会员

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmypMemberPrivacyInfoRequest req = new TmypMemberPrivacyInfoRequest();
req.setOuid("xxxxx");
req.setType(9L);
TmypMemberPrivacyInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmyp_member_privacy_info_response>
    <result>
        <success>true</success>
        <msg>ok</msg>
        <model>
            <last_join>2021-06-01 17:09:58</last_join>
            <expire>2022-06-01 17:09:58</expire>
            <level_name>黄金会员</level_name>
            <level>2</level>
        </model>
    </result>
</tmyp_member_privacy_info_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

返回
顶部