Documentation ¶
Index ¶
- type HttpSharedAlbumsService
- func (s HttpSharedAlbumsService) Get(shareToken string, ctx context.Context) (*albums.Album, error)
- func (s HttpSharedAlbumsService) Join(shareToken string, ctx context.Context) (*albums.Album, error)
- func (s HttpSharedAlbumsService) Leave(shareToken string, ctx context.Context) error
- func (s HttpSharedAlbumsService) List(options *ListOptions, pageToken string, ctx context.Context) (result []albums.Album, nextPageToken string, err error)
- func (s HttpSharedAlbumsService) ListAll(options *ListOptions, ctx context.Context) ([]albums.Album, error)
- func (s HttpSharedAlbumsService) ListAllAsync(options *ListOptions, ctx context.Context) (<-chan albums.Album, <-chan error)
- type ListOptions
- type SharedAlbumsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpSharedAlbumsService ¶
type HttpSharedAlbumsService struct {
// contains filtered or unexported fields
}
func NewHttpSharedAlbumsService ¶
func NewHttpSharedAlbumsService(authenticatedClient *http.Client) HttpSharedAlbumsService
func (HttpSharedAlbumsService) Get ¶
Fetches album based on specified shareToken
Doc: https://developers.google.com/photos/library/reference/rest/v1/sharedAlbums/get
func (HttpSharedAlbumsService) Join ¶
func (s HttpSharedAlbumsService) Join(shareToken string, ctx context.Context) (*albums.Album, error)
Joins a shared album on behalf of the Google Photos user.
Doc: https://developers.google.com/photos/library/reference/rest/v1/sharedAlbums/join
func (HttpSharedAlbumsService) Leave ¶
func (s HttpSharedAlbumsService) Leave(shareToken string, ctx context.Context) error
Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own this album.
Doc: https://developers.google.com/photos/library/reference/rest/v1/sharedAlbums/leave
func (HttpSharedAlbumsService) List ¶
func (s HttpSharedAlbumsService) List(options *ListOptions, pageToken string, ctx context.Context) (result []albums.Album, nextPageToken string, err error)
Lists all shared albums available in the Sharing tab of the user's Google Photos app.
Doc: https://developers.google.com/photos/library/reference/rest/v1/sharedAlbums/list
func (HttpSharedAlbumsService) ListAll ¶
func (s HttpSharedAlbumsService) ListAll(options *ListOptions, ctx context.Context) ([]albums.Album, error)
Synchronous wrapper for ListAllAsync
func (HttpSharedAlbumsService) ListAllAsync ¶
func (s HttpSharedAlbumsService) ListAllAsync(options *ListOptions, ctx context.Context) (<-chan albums.Album, <-chan error)
Asynchronous wrapper for List that takes care of pagination. Returned channel has buffer size of 50
type ListOptions ¶
type SharedAlbumsService ¶
type SharedAlbumsService interface {}
Interface for https://developers.google.com/photos/library/reference/rest/v1/sharedAlbums resource