googlephotos

package
v0.0.0-...-b88c27a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package googlephotos implements the Google Photos service using its API, documented at https://developers.google.com/photos/.

Index

Constants

View Source
const (
	DataSourceName = "Google Photos"
	DataSourceID   = "google_photos"
)

Data source name and ID.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient           *http.Client
	IncludeArchivedMedia bool
	// contains filtered or unexported fields
}

Client interacts with the Google Photos API. It requires an OAuth2-authorized HTTP client in order to work properly.

func (*Client) ListItems

func (c *Client) ListItems(ctx context.Context, itemChan chan<- *timeliner.ItemGraph, opt timeliner.ListingOptions) error

ListItems lists items from the data source. opt.Timeframe precision is day-level at best.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL