v1.0.1 | September 26, 2018
The Google Photos API requires an OAuth2 Access Token with the scopes:
- https://www.googleapis.com/auth/photoslibrary.location
- https://www.googleapis.com/auth/photoslibrary.readonly
Soon I'll add a method for generating a token locally, but for now grab one from the OAuth Sandbox.
go get -u github.com/heindl/google-photos
Download photos to a directory.
google-photos download
-o, --output-path string output path for download
Print photo references to standard out as a JSON document.
google-photos list
-a, --album stringArray Album titles to limit results.
-t, --token string Google oauth2 access token.
-v, --verbose Print debug logs.
Copyright 2018 Parker Heindl. All rights reserved. Use of this source code is governed by the MIT License.