Skip to content

ihippik/gphoto

Repository files navigation

Google Photo client

License: GPL v3 Build Status codecov

A simple client for receiving photos and albums via API Google Photos.

Photos received from Google Api are cached in the database (bolt db by default). The cache is updated as needed.

Example

import 	"github.com/ihippik/gphoto"

refreshToken := "REFRESH_TOKEN"
clientID := "CLIENT_ID"
clientSecret := "CLIENT_SECRET"
client,err := gphoto.NewGoogleClient(clientID, clientSecret, refreshToken)

albums, err := client.GetAlbumList()
photos, err:= client.GetPhotoByAlbum(albumID)