文档中心 > API类目 > 多媒体平台API

taobao.picture.userinfo.get (查询图片空间用户的信息)

查询用户的图片空间使用信息,包括:订购量,已使用容量,免费容量,总的可使用容量,订购有效期,剩余容量

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
user_info UserInfo 用户使用图片空间的信息
  • └ order_space
  • String
  • 20K;30M;40G
  • 用户订购的图片空间容量
  • └ used_space
  • String
  • 10K;20M;30G
  • 已使用的图片空间容量
  • └ remaining_space
  • String
  • 10K;20M;30G
  • 剩余的图片空间容量
  • └ available_space
  • String
  • 50K;60M;70G
  • 用户的可用容量,即订购量与免费量之和
  • └ free_space
  • String
  • 30M;1G
  • 图片空间的免费容量
  • └ order_expiry_date
  • String
  • 2011年9月5日
  • 图片空间的订购有效期
  • └ water_mark
  • String
  • false|null|true|0.8|null|16|false|false|false|255,255,255|0|false|-0.21,-0.13|http://img02.taobaocdn.com/imgextra/i2/12345644/T2DFOjdooxX_!!12345644.jpg|3
  • 用户自定义的水印参数,通过"|"分割开,如果用户没有定义则为"" 具体水印参数组合方法,用"|"分开,顺序按"是否全局设置|水印文字|是否文字水印优先|透明度|字体|字体大小|字体是否加粗|字体是否斜体|字体是否加下划线|字体颜色|旋转角度|是否带阴影|水印位置|图片水印URL|reference水印相对位置" reference取值有左上(1)/中间(3)/右下(2),其中的null代表为空

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PictureUserinfoGetRequest req = new PictureUserinfoGetRequest();
PictureUserinfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<picture_userinfo_get_response>
    <user_info>
        <order_space>20K;30M;40G</order_space>
        <used_space>10K;20M;30G</used_space>
        <remaining_space>10K;20M;30G</remaining_space>
        <available_space>50K;60M;70G</available_space>
        <free_space>30M;1G</free_space>
        <order_expiry_date>2011年9月5日</order_expiry_date>
        <water_mark>false|null|true|0.8|null|16|false|false|false|255,255,255|0|false|-0.21,-0.13|http://img02.taobaocdn.com/imgextra/i2/12345644/T2DFOjdooxX_!!12345644.jpg|3</water_mark>
    </user_info>
</picture_userinfo_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>

错误码解释

错误码 错误描述 解决方案
isp.picture-service-client-service-error:ID is illegal ISP查询用户seller id出错 重新调用
isv.picture-service-client-service-error:nick is illegal 用户昵称非法 重新调用或更新session后再调用
isv.picture-service-client-service-error:nick and sellerid are all illegal 用户昵称和用户ID均非法 更新session后再调用
isv.picture-service-client-service-error:sellerId is illegal 用户id非法 重新调用或更新session后再调用

API工具

如何获得此API

FAQ

返回
顶部