Avatars
Thumbnails
Users
Generate User Thumbnail
Generates and returns the URL for the user's avatar thumbnail.
This is a long-running operation: the response is an Operation object. Poll the operation using its returned path until done is true, at which point response.imageUri contains the thumbnail URL. See Get User Thumbnail Generation Operation.
get/cloud/v2/users/{user_id}:generateThumbnail
Path parameters
user_idstring required
The user ID.
Query parameters
sizeinteger
Size of the generated thumbnail. The generated thumbnail will have size * size dimension.
Currently supported values: 48, 50, 60, 75, 100, 110, 150, 180, 352, 420, 720 Default is 420.
format'FORMAT_UNSPECIFIED' | 'PNG' | 'JPEG'
Define the format of the thumbnail.
Specify the format of the generated thumbnail. Default is PNG.
Possible values:
| Value | Description |
|---|---|
| FORMAT_UNSPECIFIED | Default UserThumbnail Format -- set to png |
| PNG | Generate thumbnail in .png format |
| JPEG | Generate thumbnail in .jpg format |
shape'SHAPE_UNSPECIFIED' | 'ROUND' | 'SQUARE'
Define the shape of the thumbnail.
Specify the shape of the thumbnail. Default is ROUND (circular).
Possible values:
| Value | Description |
|---|---|
| SHAPE_UNSPECIFIED | Default UserThumbnail Shape -- set to round |
| ROUND | Generate thumbnail as a circle. |
| SQUARE | Generate thumbnail as a rectangle. |
Response
Success