Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Twitter client for connect apps

tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

twitter-connect

Twitter client meant to be used with connect apps.

Installation

$ npm install twitter-connect

Usage

var twitter = require('twitter-connect').createClient({
  consumerKey:    'consumer_key_here',
  consumerSecret: 'consumer_secret_here'
});

app.get('/test', function(request, response) {
  twitter.authorize(request, response, function(error, api) {
    api.get('/account/verify_credentials.json', function(error, data) {
      response.send('DATA: ' + sys.inspect(data))
    });
  });
});
Something went wrong with that request. Please try again.