Load photos at random from a Google Photos album.
- Go to Google's API Console.
- Go to the Credentials tab and create an OAuth web client.
- Authorize
http://localhost:3000/oauth2callback
as a URI redirect.
Take note of your
Client ID
andClient secret
. You will need this in the next section.
- Run the scripts below to get the project:
git clone https://github.com/peterthehan/google-photos-at-random.git
cd google-photos-at-random
npm i
- Find and rename example.config.json to
config.json
. Open the file and enter yourClient ID
andClient secret
from the previous section:
{
"clientId": "CLIENT_ID_PLACEHOLDER",
"clientSecret": "CLIENT_SECRET_PLACEHOLDER",
"redirectUri": "http://localhost:3000/oauth2callback"
}
- Run
npm start
.
You will need to authenticate with your Google account on start.
Visit for more help or information!