node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

upload-gphotos

upload-gphotos

NPM

NPM VERSION GITHUB RELEASE LICENSE Greenkeeper badge

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"

Installation

npm (Recommended)

$ npm install -g upload-gphotos

Executable file

Download your platform's binary via GitHub Releases.

Usage

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

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.