sharinpix
SharinPix Client
Last updated 4 years ago by ombr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sharinpix 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.9                                ...           latest (2 years ago)

9 Versions

  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Downloads
Today 0
This Week 9
This Month 9
Last Day 9
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (19)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |