Versions in this module Expand all Collapse all v1 v1.0.2 Nov 19, 2021 Changes in this version + const DrivePhotosReadonlyScope + const PhotoslibraryAppendonlyScope + const PhotoslibraryReadonlyAppcreateddataScope + const PhotoslibraryReadonlyScope + const PhotoslibraryScope + const PhotoslibrarySharingScope + type AddEnrichmentToAlbumRequest struct + AlbumPosition *AlbumPosition + ForceSendFields []string + NewEnrichmentItem *NewEnrichmentItem + NullFields []string + func (s *AddEnrichmentToAlbumRequest) MarshalJSON() ([]byte, error) + type AddEnrichmentToAlbumResponse struct + EnrichmentItem *EnrichmentItem + ForceSendFields []string + NullFields []string + func (s *AddEnrichmentToAlbumResponse) MarshalJSON() ([]byte, error) + type Album struct + CoverPhotoBaseUrl string + ForceSendFields []string + Id string + IsWriteable bool + NullFields []string + ProductUrl string + ShareInfo *ShareInfo + Title string + TotalMediaItems int64 + func (s *Album) MarshalJSON() ([]byte, error) + type AlbumPosition struct + ForceSendFields []string + NullFields []string + Position string + RelativeEnrichmentItemId string + RelativeMediaItemId string + func (s *AlbumPosition) MarshalJSON() ([]byte, error) + type AlbumsAddEnrichmentCall struct + func (c *AlbumsAddEnrichmentCall) Context(ctx context.Context) *AlbumsAddEnrichmentCall + func (c *AlbumsAddEnrichmentCall) Do(opts ...googleapi.CallOption) (*AddEnrichmentToAlbumResponse, error) + func (c *AlbumsAddEnrichmentCall) Fields(s ...googleapi.Field) *AlbumsAddEnrichmentCall + func (c *AlbumsAddEnrichmentCall) Header() http.Header + type AlbumsCreateCall struct + func (c *AlbumsCreateCall) Context(ctx context.Context) *AlbumsCreateCall + func (c *AlbumsCreateCall) Do(opts ...googleapi.CallOption) (*Album, error) + func (c *AlbumsCreateCall) Fields(s ...googleapi.Field) *AlbumsCreateCall + func (c *AlbumsCreateCall) Header() http.Header + type AlbumsGetCall struct + func (c *AlbumsGetCall) Context(ctx context.Context) *AlbumsGetCall + func (c *AlbumsGetCall) Do(opts ...googleapi.CallOption) (*Album, error) + func (c *AlbumsGetCall) Fields(s ...googleapi.Field) *AlbumsGetCall + func (c *AlbumsGetCall) Header() http.Header + func (c *AlbumsGetCall) IfNoneMatch(entityTag string) *AlbumsGetCall + type AlbumsListCall struct + func (c *AlbumsListCall) Context(ctx context.Context) *AlbumsListCall + func (c *AlbumsListCall) Do(opts ...googleapi.CallOption) (*ListAlbumsResponse, error) + func (c *AlbumsListCall) Fields(s ...googleapi.Field) *AlbumsListCall + func (c *AlbumsListCall) Header() http.Header + func (c *AlbumsListCall) IfNoneMatch(entityTag string) *AlbumsListCall + func (c *AlbumsListCall) PageSize(pageSize int64) *AlbumsListCall + func (c *AlbumsListCall) PageToken(pageToken string) *AlbumsListCall + func (c *AlbumsListCall) Pages(ctx context.Context, f func(*ListAlbumsResponse) error) error + type AlbumsService struct + func NewAlbumsService(s *Service) *AlbumsService + func (r *AlbumsService) AddEnrichment(albumId string, addenrichmenttoalbumrequest *AddEnrichmentToAlbumRequest) *AlbumsAddEnrichmentCall + func (r *AlbumsService) Create(createalbumrequest *CreateAlbumRequest) *AlbumsCreateCall + func (r *AlbumsService) Get(albumId string) *AlbumsGetCall + func (r *AlbumsService) List() *AlbumsListCall + func (r *AlbumsService) Share(albumId string, sharealbumrequest *ShareAlbumRequest) *AlbumsShareCall + type AlbumsShareCall struct + func (c *AlbumsShareCall) Context(ctx context.Context) *AlbumsShareCall + func (c *AlbumsShareCall) Do(opts ...googleapi.CallOption) (*ShareAlbumResponse, error) + func (c *AlbumsShareCall) Fields(s ...googleapi.Field) *AlbumsShareCall + func (c *AlbumsShareCall) Header() http.Header + type BatchCreateMediaItemsRequest struct + AlbumId string + AlbumPosition *AlbumPosition + ForceSendFields []string + NewMediaItems []*NewMediaItem + NullFields []string + func (s *BatchCreateMediaItemsRequest) MarshalJSON() ([]byte, error) + type BatchCreateMediaItemsResponse struct + ForceSendFields []string + NewMediaItemResults []*NewMediaItemResult + NullFields []string + func (s *BatchCreateMediaItemsResponse) MarshalJSON() ([]byte, error) + type ContentFilter struct + ExcludedContentCategories []string + ForceSendFields []string + IncludedContentCategories []string + NullFields []string + func (s *ContentFilter) MarshalJSON() ([]byte, error) + type ContributorInfo struct + DisplayName string + ForceSendFields []string + NullFields []string + ProfilePictureBaseUrl string + func (s *ContributorInfo) MarshalJSON() ([]byte, error) + type CreateAlbumRequest struct + Album *Album + ForceSendFields []string + NullFields []string + func (s *CreateAlbumRequest) MarshalJSON() ([]byte, error) + type Date struct + Day int64 + ForceSendFields []string + Month int64 + NullFields []string + Year int64 + func (s *Date) MarshalJSON() ([]byte, error) + type DateFilter struct + Dates []*Date + ForceSendFields []string + NullFields []string + Ranges []*DateRange + func (s *DateFilter) MarshalJSON() ([]byte, error) + type DateRange struct + EndDate *Date + ForceSendFields []string + NullFields []string + StartDate *Date + func (s *DateRange) MarshalJSON() ([]byte, error) + type EnrichmentItem struct + ForceSendFields []string + Id string + NullFields []string + func (s *EnrichmentItem) MarshalJSON() ([]byte, error) + type Filters struct + ContentFilter *ContentFilter + DateFilter *DateFilter + ForceSendFields []string + IncludeArchivedMedia bool + MediaTypeFilter *MediaTypeFilter + NullFields []string + func (s *Filters) MarshalJSON() ([]byte, error) + type JoinSharedAlbumRequest struct + ForceSendFields []string + NullFields []string + ShareToken string + func (s *JoinSharedAlbumRequest) MarshalJSON() ([]byte, error) + type JoinSharedAlbumResponse struct + type LatLng struct + ForceSendFields []string + Latitude float64 + Longitude float64 + NullFields []string + func (s *LatLng) MarshalJSON() ([]byte, error) + func (s *LatLng) UnmarshalJSON(data []byte) error + type ListAlbumsResponse struct + Albums []*Album + ForceSendFields []string + NextPageToken string + NullFields []string + func (s *ListAlbumsResponse) MarshalJSON() ([]byte, error) + type ListSharedAlbumsResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + SharedAlbums []*Album + func (s *ListSharedAlbumsResponse) MarshalJSON() ([]byte, error) + type Location struct + ForceSendFields []string + Latlng *LatLng + LocationName string + NullFields []string + func (s *Location) MarshalJSON() ([]byte, error) + type LocationEnrichment struct + ForceSendFields []string + Location *Location + NullFields []string + func (s *LocationEnrichment) MarshalJSON() ([]byte, error) + type MapEnrichment struct + Destination *Location + ForceSendFields []string + NullFields []string + Origin *Location + func (s *MapEnrichment) MarshalJSON() ([]byte, error) + type MediaItem struct + BaseUrl string + ContributorInfo *ContributorInfo + Description string + Filename string + ForceSendFields []string + Id string + MediaMetadata *MediaMetadata + MimeType string + NullFields []string + ProductUrl string + func (s *MediaItem) MarshalJSON() ([]byte, error) + type MediaItemsBatchCreateCall struct + func (c *MediaItemsBatchCreateCall) Context(ctx context.Context) *MediaItemsBatchCreateCall + func (c *MediaItemsBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchCreateMediaItemsResponse, error) + func (c *MediaItemsBatchCreateCall) Fields(s ...googleapi.Field) *MediaItemsBatchCreateCall + func (c *MediaItemsBatchCreateCall) Header() http.Header + type MediaItemsGetCall struct + func (c *MediaItemsGetCall) Context(ctx context.Context) *MediaItemsGetCall + func (c *MediaItemsGetCall) Do(opts ...googleapi.CallOption) (*MediaItem, error) + func (c *MediaItemsGetCall) Fields(s ...googleapi.Field) *MediaItemsGetCall + func (c *MediaItemsGetCall) Header() http.Header + func (c *MediaItemsGetCall) IfNoneMatch(entityTag string) *MediaItemsGetCall + type MediaItemsSearchCall struct + func (c *MediaItemsSearchCall) Context(ctx context.Context) *MediaItemsSearchCall + func (c *MediaItemsSearchCall) Do(opts ...googleapi.CallOption) (*SearchMediaItemsResponse, error) + func (c *MediaItemsSearchCall) Fields(s ...googleapi.Field) *MediaItemsSearchCall + func (c *MediaItemsSearchCall) Header() http.Header + func (c *MediaItemsSearchCall) Pages(ctx context.Context, f func(*SearchMediaItemsResponse) error) error + type MediaItemsService struct + func NewMediaItemsService(s *Service) *MediaItemsService + func (r *MediaItemsService) BatchCreate(batchcreatemediaitemsrequest *BatchCreateMediaItemsRequest) *MediaItemsBatchCreateCall + func (r *MediaItemsService) Get(mediaItemId string) *MediaItemsGetCall + func (r *MediaItemsService) Search(searchmediaitemsrequest *SearchMediaItemsRequest) *MediaItemsSearchCall + type MediaMetadata struct + CreationTime string + ForceSendFields []string + Height int64 + NullFields []string + Photo *Photo + Video *Video + Width int64 + func (s *MediaMetadata) MarshalJSON() ([]byte, error) + type MediaTypeFilter struct + ForceSendFields []string + MediaTypes []string + NullFields []string + func (s *MediaTypeFilter) MarshalJSON() ([]byte, error) + type NewEnrichmentItem struct + ForceSendFields []string + LocationEnrichment *LocationEnrichment + MapEnrichment *MapEnrichment + NullFields []string + TextEnrichment *TextEnrichment + func (s *NewEnrichmentItem) MarshalJSON() ([]byte, error) + type NewMediaItem struct + Description string + ForceSendFields []string + NullFields []string + SimpleMediaItem *SimpleMediaItem + func (s *NewMediaItem) MarshalJSON() ([]byte, error) + type NewMediaItemResult struct + ForceSendFields []string + MediaItem *MediaItem + NullFields []string + Status *Status + UploadToken string + func (s *NewMediaItemResult) MarshalJSON() ([]byte, error) + type Photo struct + ApertureFNumber float64 + CameraMake string + CameraModel string + ExposureTime string + FocalLength float64 + ForceSendFields []string + IsoEquivalent int64 + NullFields []string + func (s *Photo) MarshalJSON() ([]byte, error) + func (s *Photo) UnmarshalJSON(data []byte) error + type SearchMediaItemsRequest struct + AlbumId string + Filters *Filters + ForceSendFields []string + NullFields []string + PageSize int64 + PageToken string + func (s *SearchMediaItemsRequest) MarshalJSON() ([]byte, error) + type SearchMediaItemsResponse struct + ForceSendFields []string + MediaItems []*MediaItem + NextPageToken string + NullFields []string + func (s *SearchMediaItemsResponse) MarshalJSON() ([]byte, error) + type Service struct + Albums *AlbumsService + BasePath string + MediaItems *MediaItemsService + SharedAlbums *SharedAlbumsService + UserAgent string + func New(client *http.Client) (*Service, error) + type ShareAlbumRequest struct + ForceSendFields []string + NullFields []string + SharedAlbumOptions *SharedAlbumOptions + func (s *ShareAlbumRequest) MarshalJSON() ([]byte, error) + type ShareAlbumResponse struct + ForceSendFields []string + NullFields []string + ShareInfo *ShareInfo + func (s *ShareAlbumResponse) MarshalJSON() ([]byte, error) + type ShareInfo struct + ForceSendFields []string + NullFields []string + ShareToken string + ShareableUrl string + SharedAlbumOptions *SharedAlbumOptions + func (s *ShareInfo) MarshalJSON() ([]byte, error) + type SharedAlbumOptions struct + ForceSendFields []string + IsCollaborative bool + IsCommentable bool + NullFields []string + func (s *SharedAlbumOptions) MarshalJSON() ([]byte, error) + type SharedAlbumsJoinCall struct + func (c *SharedAlbumsJoinCall) Context(ctx context.Context) *SharedAlbumsJoinCall + func (c *SharedAlbumsJoinCall) Do(opts ...googleapi.CallOption) (*JoinSharedAlbumResponse, error) + func (c *SharedAlbumsJoinCall) Fields(s ...googleapi.Field) *SharedAlbumsJoinCall + func (c *SharedAlbumsJoinCall) Header() http.Header + type SharedAlbumsListCall struct + func (c *SharedAlbumsListCall) Context(ctx context.Context) *SharedAlbumsListCall + func (c *SharedAlbumsListCall) Do(opts ...googleapi.CallOption) (*ListSharedAlbumsResponse, error) + func (c *SharedAlbumsListCall) Fields(s ...googleapi.Field) *SharedAlbumsListCall + func (c *SharedAlbumsListCall) Header() http.Header + func (c *SharedAlbumsListCall) IfNoneMatch(entityTag string) *SharedAlbumsListCall + func (c *SharedAlbumsListCall) PageSize(pageSize int64) *SharedAlbumsListCall + func (c *SharedAlbumsListCall) PageToken(pageToken string) *SharedAlbumsListCall + func (c *SharedAlbumsListCall) Pages(ctx context.Context, f func(*ListSharedAlbumsResponse) error) error + type SharedAlbumsService struct + func NewSharedAlbumsService(s *Service) *SharedAlbumsService + func (r *SharedAlbumsService) Join(joinsharedalbumrequest *JoinSharedAlbumRequest) *SharedAlbumsJoinCall + func (r *SharedAlbumsService) List() *SharedAlbumsListCall + type SimpleMediaItem struct + ForceSendFields []string + NullFields []string + UploadToken string + func (s *SimpleMediaItem) MarshalJSON() ([]byte, error) + type Status struct + Code int64 + Details []googleapi.RawMessage + ForceSendFields []string + Message string + NullFields []string + func (s *Status) MarshalJSON() ([]byte, error) + type TextEnrichment struct + ForceSendFields []string + NullFields []string + Text string + func (s *TextEnrichment) MarshalJSON() ([]byte, error) + type Video struct + CameraMake string + CameraModel string + ForceSendFields []string + Fps float64 + NullFields []string + Status string + func (s *Video) MarshalJSON() ([]byte, error) + func (s *Video) UnmarshalJSON(data []byte) error