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

bitly-oauth

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitly-oauth

A node wrapper for bit.ly API with the OAuth-required methods

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bitly-oauth

A node.js wrapper for bit.ly API with the OAuth-required methods.

Install it:

npm install bitly-oauth

Use it:

var Bitly = require("bitly-oauth");
var b = new Bitly("username", "password");

// Optional step if you want to authenticate manually..
b.authenticate(function(err){
  console.log(b.isAuthenticated);
});

// First parameter is an object containing all query parameters
// Second parameter is a function(err, result) callback
// Calls /v3/link/click
b.link.click({ link: "http://bit.ly/Vnr22W" }, function(err, result){
  // do stuff
});

// Calls /v3/expand
b.expand({ shortUrl: "http://bit.ly/Vnr22W" }, function(err, result){
  // do moar stuff
});

The query parameters are listed in the individual method signatures in the bitly documentation.

Keywords

FAQs

Package last updated on 22 Apr 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc