Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Easy peasy twitter client for connect
JavaScript
tree: 4c1f597d30

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
Readme.md
index.js
package.json

Readme.md

twitter-js

Easy peasy twitter client

Usage

twitter-js has two methods.

getAccesToken: Uses oAuth module to retrieve the access_token apiCall: Does a call to twitter API.

Example

  var twitterClient = require('twitter-js').twitterClient('consumerKey', 'consumerSecret');

  twitterClient.getAccessToken({
    redirect_uri: '/auth/twitter',
    code: req.param('code'),
  },
  function (error, token) {
    if (token) {
      facebookClient.graphCall('GET', 'me', {access_token: token.access_token}, function (error, result) {
        sys.puts(sys.inspect(result));
      });
    }
  }
);
Something went wrong with that request. Please try again.