0.1.1 • Published 11 years ago

connect-user-tweets v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

connect-user-tweets

Middleware for connect that registers an endpoint which can be used to look up Tweets posted by a given user. Example:

var connect = require('connect'),
    connectUserTweets = require('connect-user-tweets');

var app = connect();

app
    .use(connectUserTweets({
        screen_name: 'posco2k8',
        count: 2, // Default. Number of tweets to return.
        cache_timeout: 5 * 60000, // Default five minutes
        consumer_key: '...', 
        consumer_secret: '...',
        access_token: '...',
        access_token_secret: '...'
    }))
    .listen(3000);

You can now access the API by sending a GET request to: http://localhost:3000/tweets.

Tweets will be cached to help prevent going over Twitter's rate limit.

0.1.1

11 years ago

0.1.0

11 years ago