- Go to https://developers.google.com/photos/library/reference/rest/v1/albums/list, open DevTools
- Click "Execute" button.
- Check the "/v1/albums" API endpoint in the DevTools Network tab
- The "key" in the query string is
API_KEY
in env var - The "Authorization" header is
ACCESS_TOKEN
in env var (remove "Bearer")
API_KEY=AI...TM ACCESS_TOKEN=ya...2Q ALBUM_TITLE="Test for API" npx @db-man/google