目录

获取用户信息

请求

HTTP请求

GET
https://drive.cloud.hicloud.com/drive/v1/about

参数

*仅对必填项做特别说明。

参数名数据类型
描述
fieldsstringquery必填,采用[Partial-response格式]。
formstringquery媒体格式。
prettyPrintbooleanquery是否以美观格式输出。
quotaIdstringquery用户标识,小于40个字符。用于限制单个用户的API访问数量。
callbackstringqueryJSONP的callback函数。
x-hw-trace-idstringheader业务跟踪id。
x-hw-app-idstringheader应用的appid。
versionstringheadersdk版本。
x-hw-terminalstringheader终端型号。
x-hw-osstringheader终端操作系统类型。
unionIDstringheader开放的用户id。
User-Agentstringheader应用版本号/appid。

请求体

请求体为空。

参数名参数类型描述

响应

如果成功,此方法将返回具有以下结构的响应正文:

  1. {
  2.            "category": "drive#about",
  3.            "user": {
  4.                "category": "drive#user",
  5.                "displayName": "string",
  6.                "profilePhotoLink": "string",
  7.                "me": true,
  8.                "permissionId": "string",
  9.                "userAccount": "string"
  10.            },
  11.            "storageQuota": {
  12.                "userCapacity": "string",
  13.                "usedSpace": "string"
  14.            },
  15.            "maxFileUploadSize": 0,
  16.            "maxThumbnailSize": 0,
  17.            "domain": "string",
  18.            "needUpdate": true,
  19.            "updateUrl": "string"
  20. }
参数名参数类型描述
categorystring资源类型,固定为drive#about。
user.categorystring*类型,drive#user。
user.displayNamestring用户显示名。
user.profilePhotoLinkstring用户头像链接(默认不返回)。
user.meboolean是否是我。
user.permissionIdstring权限id。
user.userAccountstring账号名称(默认不返回)。
storageQuota.userCapacitystring总容量。
storageQuota.usedSpacestring已用容量。
maxFileUploadSizeinteger允许上传的最大文件大小。
maxThumbnailSizeinteger支持的最大缩略图大小。
domainstring本站点域名。
needUpdateboolean用户数据是否需要割接。
updateUrlstring割接提示页面。