node package manager

upload-gphotos

upload-gphotos

NPM

NPM VERSION GITHUB RELEASE LICENSE

Google Photos にファイルをアップロード.

Upload photo to Google Photos (Unofficial).

Preparation

USE AT YOUR OWN RISK

  1. Turn on "Allowing less secure apps to access your account"
  1. Setup Google+ account

Installation

npm (Recommended)

$ npm install -g upload-gphotos

Executable file

Download your platform's binary via GitHub Releases.

Usage

$ upload-gphotos -u USERNAME -p PASSWORD file [...]

Library

This is also node.js library.

(async () => {
const gphotos = new GPhotos({ username: '', password: '' });
await gphotos.login();
 
const photo = await gphotos.upload(filePath);
const album = await gphotos.searchOrCreateAlbum('TestAlbum');
await album.addPhoto(photo);
})();

See Documentation.