Take advantage of Google Photos REST API to:
Used OAuth 2.0 Playground to obtain Oauth JWT w/out setting up Google API project using "https://www.googleapis.com/auth/photoslibrary.readonly" as a requested scope.
Access token is passed to the GooglePhotoService using -Dtoken=
Download latest version
Use 1.x versions
Use 0.x versions
To list the available options:
java -jar gphoto-manager-<version>.jar
Examples:
java -Dtoken=<access token> -jar gphoto-manager-<version>.jar --albums
java -Dtoken=<access token> -jar gphoto-manager-<version>.jar --items-no-album
TODO
./mvnw clean compile exec:java -Dexec.mainClass="com.droidablebee.gphoto.GooglePhotoApplication"
./mvnw clean compile exec:java -Dexec.mainClass="com.droidablebee.gphoto.GooglePhotoApplication" -Dexec.args="--items-no-album" -Dtoken=<access token>
./mvnw clean test
open target/spock-reports/index.html
For a shared album owned by account A, if a media item is added from another account B then its id won't be found in the list of the media items of the account A. If such a shared media item is saved in account A its id won't match the id of the original shared media item added to the shared album. W/out an indicator of some sort to identify if a media item belongs to another account it's challenging to filter them out.