Resource: Album
Representation of an album in Google Photos. Albums are containers for media items. If an album has been shared by the application, it contains an extra shareInfo
property.
JSON representation |
---|
{
"id": string,
"title": string,
"productUrl": string,
"isWriteable": boolean,
"shareInfo": {
object ( |
Fields | |
---|---|
id |
Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album. |
title |
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters. |
productUrl |
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link. |
isWriteable |
[Output only] True if you can create media items in this album. This field is based on the scopes granted and permissions of the album. If the scopes are changed or permissions of the album are changed, this field is updated. |
shareInfo |
[Output only] Information related to shared albums. This field is only populated if the album is a shared album, the developer created the album and the user has granted the |
mediaItemsCount |
[Output only] The number of media items in the album. |
coverPhotoBaseUrl |
[Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the developer documentation for a complete list of supported parameters. For example, |
coverPhotoMediaItemId |
Identifier for the media item associated with the cover photo. |
Methods |
|
---|---|
|
Adds an enrichment at a specified position in a defined album. |
|
Adds one or more media items in a user's Google Photos library to an album. |
|
Removes one or more media items from a specified album. |
|
Creates an album in a user's Google Photos library. |
|
Returns the album based on the specified albumId . |
|
Lists all albums shown to a user in the Albums tab of the Google Photos app. |
|
Update the album with the specified id . |
|
Marks an album as shared and accessible to other users. |
|
Marks a previously shared album as private. |