Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 613 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 613 Bytes

Meteor Wrapper for Bitly NPM Module

For documentation, see the Bitly Repo.

A Bitly object is exposed to the global scope so that you can directly use it like this:

var bitly = new Bitly('<YOUR USERNAME>', '<YOUR API KEY>');
bitly.shorten('https://github.com/tanepiper/node-bitly', function(err, response) {
  if (err) throw err;

  // See http://code.google.com/p/bitly-api/wiki/ApiDocumentation for format of returned object
  var short_url = response.data.url

  // Do something with data
});