Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Bit.ly library for node.js -- forked to help with install until the original is fixed

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tests
Octocat-spinner-32 .c9settings.xml
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

Bit.ly For node.js

The bit.ly library for node.js provides methods to pass URL requests to bit.ly

Features

  • Shorten Url.
  • Expand single/multiple Urls
  • Expand single/multiple hashes
  • Expand mixed urls/hashes
  • Get Clicks for URLs
  • Get Info about URLs
  • Lookup URLs
  • Check for pro domain
  • Check for authenticated account

Usage

var Bitly = require('bitly').Bitly;
var bitly = new Bitly('<YOUR USERNAME>', '<YOUR API KEY>');

To see the methods available, see examples in the tests folder. All methods take a string or array list of urls or hashes and a callback to return the data

See http://code.google.com/p/bitly-api/wiki/ApiDocumentation for format of returned object

Tests

$ sed -i 's/<YOUR USERNAME>/XXX/' tests/*
$ sed -i 's/<YOUR API KEY>/XXX/' tests/*
Something went wrong with that request. Please try again.