twitter-oauth-sign

1.1.0 • Public • Published

twitter-oauth-sign

A small module to sign twitter requests.

Require

var twitter_sign = require('twitter-oauth-sign');

API

ts.sign(method, url, params, keys)

method

The method used to make the request, can be GET or POST (or any Twitter-accepted method).

url

The url the request is being sent to. Example: "https://api.twitter.com/1/statuses/update.json"

params

All the oauth params needed for the request. Check the test to see a full example.

keys

An object containing consumer_secret (required) and oauth_token (optional). Indeed, oauth_token is not needed when requesting one (duh?).

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i twitter-oauth-sign

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • jsmrcaga