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 baseURL 정의 대신 마침표(.) 문자가 사용됩니다. 이는 URL 파싱을 단순화하기 위한 조치입니다.
- 업로드되는 사진의 크기와 관계없이 API는 96x96픽셀로 크기를 줄입니다.
base64 인코딩 문자열입니다.
|
mimeType |
string
사진의 MIME 유형입니다. 허용되는 값은 JPEG , PNG , GIF , BMP , TIFF , 웹 안전 base64 인코딩입니다.
|
width |
integer
사진의 너비(픽셀)입니다.
|
height |
integer
사진의 높이(단위: 픽셀)입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-24(UTC)
[null,null,["최종 업데이트: 2025-07-24(UTC)"],[],[],null,["# UserPhoto\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"primaryEmail\": string, \"kind\": string, \"etag\": string, \"photoData\": string, \"mimeType\": string, \"width\": integer, \"height\": integer } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The ID the API uses to uniquely identify the user. |\n| `primaryEmail` | `string` The user's primary email address. |\n| `kind` | `string` The type of the API resource. For Photo resources, this is `admin#directory#user#photo`. |\n| `etag` | `string` ETag of the resource. |\n| `photoData` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: - The slash (/) character is replaced with the underscore (_) character. - The plus sign (+) character is replaced with the hyphen (-) character. - The equals sign (=) character is replaced with the asterisk (\\*). - For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. - Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels. A base64-encoded string. |\n| `mimeType` | `string` The MIME type of the photo. Allowed values are `JPEG`, `PNG`, `GIF`, `BMP`, `TIFF`, and web-safe base64 encoding. |\n| `width` | `integer` Width of the photo in pixels. |\n| `height` | `integer` Height of the photo in pixels. |"]]