项目作者: ihippik

项目描述 :
Google Photo API client
高级语言: Go
项目地址: git://github.com/ihippik/gphoto.git
创建时间: 2019-08-01T18:38:03Z
项目社区:https://github.com/ihippik/gphoto

开源协议:

下载


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

  1. import "github.com/ihippik/gphoto"
  2. refreshToken := "REFRESH_TOKEN"
  3. clientID := "CLIENT_ID"
  4. clientSecret := "CLIENT_SECRET"
  5. client,err := gphoto.NewGoogleClient(clientID, clientSecret, refreshToken)
  6. albums, err := client.GetAlbumList()
  7. photos, err:= client.GetPhotoByAlbum(albumID)