sharinpix

0.0.9 • Public • Published

Sharinpix client.

Installation

npm install --save sharinpix

Example of code :

Sharinpix = require('sharinpix');
Sharinpix.upload('./sharinpix.jpg', 'super_test').then(function(image){
  console.log(image.public_id);
}, function(error){
  console.log(error);
})
 

Import from Url

Sharinpix = require('sharinpix');
Sharinpix.import('https://test.sharinpix.com/image.jpg', 'super_test').then(function(image){
  console.log(image.public_id);
}, function(error){
  console.log(error);
})

Authentification :

Set the environement variable SHARINPIX_URL with the url of your secret or call configure like this :

Sharinpix.configure('<Sharinpix-secret-url>');

SharinPix command line tool

Installing SharinPix globally

npm install -g sharinpix

Set environment variable

Run export SHARINPIX_URL="YOUR_SHARINPIX_SECRET_URL" on your terminal or set SHARINPIX_URL permanently to your enviroment variable.

Upload

Run sharinpix upload <image path> <album id> [<json metadatas>] on your terminal.

/sharinpix/

    Package Sidebar

    Install

    npm i sharinpix

    Weekly Downloads

    0

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    1.37 MB

    Total Files

    12

    Last publish

    Collaborators

    • zafirskthelifehacker
    • ombr
    • sharinpix-admin
    • azharbeebeejaun