# bitly-oauth

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

Latest version **0.0.5** (published 2014-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install bitly-oauth
pnpm add bitly-oauth
yarn add bitly-oauth
bun add bitly-oauth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-04-22 |
| First published | 2013-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | kylehill |
| Keywords | url, bitly, click tracking, bit.ly |

## Links

- npm: https://www.npmjs.com/package/bitly-oauth
- Repository: http://github.com/kylehill/bitly-oauth
- Homepage: http://github.com/kylehill/bitly-oauth.git
- Issues: https://github.com/kylehill/bitly-oauth/issues
- npm.io page: https://npm.io/package/bitly-oauth

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.34.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.5 (latest) — 2014-04-22
- 0.0.3 — 2013-03-04
- 0.0.1 — 2013-02-17

## README

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](http://dev.bitly.com/api.html).

---
_Source: https://npm.io/package/bitly-oauth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
