imgur-upload-api

2.0.0 • Public • Published

Instalation :

> npm i imgur-upload-api

Example

var imgur = require('imgur-upload-api'),
path = require('path');

imgur.setClientID(myClientID);
imgur.upload(path.join(__dirname, 'someimage.png'), function (err, res) {
  console.log(res.data.link); // Log the imgur url
});

imgur.upload('http://25.media.tumblr.com/tumblr_md1yfw1Dcz1rsx19no1_1280.png', function (err,res) {
  console.log(res);
});

imgur.delete('W0JfyHW', function (err,res) {
  console.log(res.data);
});

imgur.update({
  id: 'W0JfyHW',
  title: 'My Title',
  description: 'My Description'
}, function (err,res) {
  console.log(res.data);
});

imgur.getCredits(function (err, res) {
  console.log(res.data);
});

Package Sidebar

Install

npm i imgur-upload-api

Weekly Downloads

1,265

Version

2.0.0

License

MIT

Unpacked Size

10.2 MB

Total Files

226

Last publish

Collaborators

  • n4y4n