photoslibrary.v1 library Null safety

Photos Library API - v1

Manage photos, videos, and albums in Google Photos

For more information, see developers.google.cn/photos/

Create an instance of PhotosLibraryApi to access these resources:

Classes

AddEnrichmentToAlbumRequest
Request to add an enrichment to a specific album at a specific position.
AddEnrichmentToAlbumResponse
The enrichment item that's created.
Album
Representation of an album in Google Photos.
AlbumPosition
Specifies a position in an album.
AlbumsResource
BatchAddMediaItemsToAlbumRequest
Request to add media items to an album.
BatchCreateMediaItemsRequest
Request to create one or more media items in a user's Google Photos library.
BatchCreateMediaItemsResponse
List of media items created.
BatchGetMediaItemsResponse
Response to retrieve a list of media items.
BatchRemoveMediaItemsFromAlbumRequest
Request to remove a list of media items from an album.
ContentFilter
This filter allows you to return media items based on the content type.
ContributorInfo
Information about the user who added the media item.
CreateAlbumRequest
Request to create an album in Google Photos.
Date
Represents a whole calendar date.
DateFilter
This filter defines the allowed dates or date ranges for the media returned.
DateRange
Defines a range of dates.
EnrichmentItem
An enrichment item.
FeatureFilter
This filter defines the features that the media items should have.
Filters
Filters that can be applied to a media item search.
JoinSharedAlbumRequest
Request to join a shared album on behalf of the user.
JoinSharedAlbumResponse
Response to successfully joining the shared album on behalf of the user.
LeaveSharedAlbumRequest
Request to leave a shared album on behalf of the user.
ListAlbumsResponse
List of albums requested.
ListMediaItemsResponse
List of all media items from the user's Google Photos library.
ListSharedAlbumsResponse
List of shared albums requested.
Location
Represents a physical location.
LocationEnrichment
An enrichment containing a single location.
MapEnrichment
An enrichment containing a map, showing origin and destination locations.
MediaItem
Representation of a media item (such as a photo or video) in Google Photos.
MediaItemResult
Result of retrieving a media item.
MediaItemsResource
MediaMetadata
Metadata for a media item.
MediaTypeFilter
This filter defines the type of media items to be returned, for example, videos or photos.
NewEnrichmentItem
A new enrichment item to be added to an album, used by the albums.addEnrichment call.
NewMediaItem
New media item that's created in a user's Google Photos account.
NewMediaItemResult
Result of creating a new media item.
Photo
Metadata that is specific to a photo, such as, ISO, focal length and exposure time.
PhotosLibraryApi
Manage photos, videos, and albums in Google Photos
SearchMediaItemsRequest
Request to search for media items in a user's library.
SearchMediaItemsResponse
List of media items that match the search parameters.
ShareAlbumRequest
Request to make an album shared in Google Photos.
ShareAlbumResponse
Response to successfully sharing an album.
SharedAlbumOptions
Options that control the sharing of an album.
SharedAlbumsResource
ShareInfo
Information about albums that are shared.
SimpleMediaItem
A simple media item to be created in Google Photos via an upload token.
TextEnrichment
An enrichment containing text.
Video
Metadata that is specific to a video, for example, fps and processing status.

Typedefs

BatchAddMediaItemsToAlbumResponse = $Empty
Response for adding media items to an album.
BatchRemoveMediaItemsFromAlbumResponse = $Empty
Response for successfully removing all specified media items from the album.
LatLng = $LatLng
An object that represents a latitude/longitude pair.
LeaveSharedAlbumResponse = $Empty
Response to successfully leaving the shared album on behalf of the user.
Status = $Status
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
UnshareAlbumRequest = $Empty
Request to unshare a shared album in Google Photos.
UnshareAlbumResponse = $Empty
Response of a successful unshare of a shared album.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.