UserPhoto
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"id": string,
"primaryEmail": string,
"kind": string,
"etag": string,
"photoData": string,
"mimeType": string,
"width": integer,
"height": integer
} |
字段 |
id |
string
API 用于唯一标识用户的 ID。
|
primaryEmail |
string
用户的主电子邮件地址。
|
kind |
string
API 资源类型。对于照片资源,请使用 admin#directory#user#photo 。
|
etag |
string
资源的 ETag。
|
photoData |
string (bytes format)
用户照片以网络安全 Base64 格式上传的数据(以字节为单位)。这意味着:
- 系统会将斜杠 (/) 字符替换为下划线 (_) 字符。
- 加号 (+) 字符会被替换为连字符 (-)。
- 等号 (=) 字符已替换为星号 (*)。
- 对于填充,使用的是英文句点 (.) 字符,而不是 RFC-4648 base网址 定义,后者使用等号 (=) 进行填充。这样做是为了简化网址解析。
- 无论上传的照片大小如何,API 都会将其缩小至 96x96 像素。
使用 base64 编码的字符串。
|
mimeType |
string
照片的 MIME 类型。允许的值为 JPEG 、PNG 、GIF 、BMP 、TIFF 以及可在网络中安全使用的 base64 编码格式。
|
width |
integer
照片的宽度(以像素为单位)。
|
height |
integer
照片的高度(以像素为单位)。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-15。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{
"last_modified": "最后更新时间 (UTC):2024-05-15。",
"state": ""
}