Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
/ hello-google-photos Public archive

Uploading photos using Google Photos Library API in Go

Notifications You must be signed in to change notification settings

int128/hello-google-photos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello Google Photos Library API in Go

An example Go application using Google Photos Library API.

TL;DR

  1. Open https://console.cloud.google.com/apis/credentials
  2. Create an OAuth client ID where the application type is other.
  3. Set the following environment variables:
export GOOGLE_CLIENT_ID=
export GOOGLE_CLIENT_SECRET=
./hello-google-photos photo1.jpg photo2.jpg

The photos will be uploaded to your Google Photos Library.

How it works

This depends on google/google-api-go-client.

It does not provide media uploads and this implements it using http.Client.

Caveats

This does not persist an access token. You must do browser authentication every time.

This supports does not support a service account.

About

Uploading photos using Google Photos Library API in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages