Skip to content

orbanszlrd/next-google-photos

Repository files navigation

Next Google Photos

Description

Consuming the Google Photos Library API : Access private Albums and Media Items

Website

photos.dinodev.hu

Development

Prerequisites

Install Git, the free and open source distributed version control system.
Install Node.js which includes Node Package Manager.

Clone and Install

Run git clone git@github.com:orbanszlrd/next-google-photos.git to clone the repository from GitHub.

Run the Development Server

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Setup the Environment Variables

  • Visit the Google API Console to obtain OAuth 2.0 credentials such as a client ID and client secret that are known to both Google and your application.
GOOGLE_CLIENT_ID=<your-google-client-id>
GOOGLE_CLIENT_SECRET=<your-google-client-secret>
GOOGLE_REFRESH_TOKEN=<your-google-client-refresh-token>
GOOGLE_GRANT_TYPE="refresh_token"

Useful Links

Google Photos APIs - Overview
Google Photos APIs - Resource summary
Google Identity - Using OAuth 2.0 to Access Google APIs
Google Cloud Credentials - APIs & Services
Google Account Settings - Permissions
GitHub - Google APIs Node.js Client
YouTube - Bring the best of Google Photos to your app