Miss any of our Open RFC calls?Watch the recordings here! »

sharinpix-import

1.0.1 • Public • Published

SharinPix Import

Code usage

Installation

$ npm install -g --save sharinpix-import

Usage

$ npm install -g sharinpix-import
$ env SHARINPIX_URL=sharinpix://secret_url_you_can_find_in_your_admin_dashboard sharinpix-import sample.csv > success.csv 2> error.csv
  • sample.csv refers to the path of the file containing the images to be imported.
  • success.csv refers to the path of the log file containing only successfully-imported images.
  • error.csv refers to the path of the error log file containing only images that failed to be imported.

The structure of the sample.csv file should be in the following form:

{"key":"value"} are metadatas to add to the images (as a json hash).

album_id_1;image_url_1;tag1,tag2,tag3;{"key":"value"}
album_id_2;image_url_2;tag1,tag2,tag3;{"key":"value"}
  • Note: {"key": "value"} refers to SharinPix metadatas in JSON.

Example

000000000000000000;http://lorempixel.com/400/200/sports/;foo,bar,dim;{"key":"value"}

License

MIT

Install

npm i [email protected]

Version

1.0.1

License

MIT

Unpacked Size

8.72 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar