Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitly2

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitly2

OAuth Nodejs Module for bitly. As well as my cover letter for the API Hacker Job

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bitly2

This minimalistic module will allow you to interface bitly's API using Nodejs. This module works specifically with OAuth, therefore most endpoints should be accessible.

Bitly's API can be found here.

Feel more than free to submit pull requests or comments.

License

Licensed under the MIT License.

Install

npm install bitly2

Usage

var bitly, bitlyClient;

bitlyClient = require('bitly2');
// Replace proccess.env.bitly_user & process.env.bitly_password with your own credentials!
bitly = new bitlyClient(process.env.bitly_user, process.env.bitly_password, function(error) {
  if (!error) {
    bitly.get('highvalue', {'limit': 2}, function(error, result) {
      if (!error) {
        console.log(result);
      }
      else {
        console.log(error);
      }
    });
  }
});

Why?

Why would you build yet another module? After a quick scan all of the current modules I found were using the deprecated apiKey method. I figured I might just implement a OAuth one. Keeping it simple :)

Plus this is my cover letter :)

Todo

  • Tests

Keywords

FAQs

Package last updated on 21 Apr 2013

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc