Socket
Socket
Sign inDemoInstall

imgur-node-api

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgur-node-api

Node implementation of the anonymous imgur api


Version published
Maintainers
1
Created

Readme

Source

imgur anonymous upload in nodejs using the imgur api.

Getting Started

Install the module with: npm install imgur-node-api

var imgur = require('imgur-node-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.data.link);
});

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);
});

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 jamiees2 Licensed under the MIT license.

Keywords

FAQs

Package last updated on 04 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc