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.
Path parameters
The user ID.
Query parameters
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.
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 |
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
Changes
Changed in 1 of the 15 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○