Skip to content

asegurola/google-photos-album-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Photos Library API Java Client Library Samples

This directory contains three samples to help you get started with the Java client library for the Google Photos Library API.

Get started

  1. Follow the steps in the client library get started guide either by cloning this repository or downloading a compressed tarball.
  2. Set up your Google Developers project, enable the Google Photos Library API and set up new OAuth credentials for an "other-type" application. Download the OAuth configuration as a JSON file. See Setting up your OAuth2 credentials.
  3. Open the build.gradle file in this directory in your IDE or make a build from the commandline using ./gradlew assemble to build the samples.
  4. Run one of the samples main classes from the package com.google.photos.library.sample.demos . You can also run one of the following gradle tasks, for example ./gradlew sample:runAlbum:
    • sample:runAlbum
    • sample:runFilter
    • sample:runShare

Note: You may need to clean your build project and build directories (./gradlew clean) before you run a different sample app. The user authentication credentials are cached for all samples together and execution will fail for samples that require different authentication scopes.

Samples

This repository includes three samples.

Filters

Class: com.google.photos.library.sample.demos.FilterDemo. File: FilterDemo.java

Shows how to list media, apply filters and read media metadata.

Albums and Uploads

Class: com.google.photos.library.sample.demos.AlbumDemo. File: AlbumDemo.java

Shows how to list albums, list the content of albums, create new albums and upload media.

Sharing

Class: com.google.photos.library.sample.demos.ShareDemo. File: AlbumDemo.java

Shows how to share an album created by this application using share tokens.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages