0.1.2 • Published 6 years ago

twitter-followers v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Twitter followers

Retreive all Twitter followers regardless of rate limits (may takes long time).

Dependencies

This package requires Twit.

Usage

npm install --save twit
npm install --save twitter-followers
const Twit = require('twit')
const tokens = {
  consumer_key: 'xxxxxxxxxxxxxxxxxxxxxxxxx',
  consumer_secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  access_token: 'xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  access_token_secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  timeout_ms: 60 * 1000
}

const T = new Twit(tokens)
const getFollowers = require('twitter-followers')

getFollowers(T, 'xaqron')
  .then((followers) => {
    console.log(followers)
  })
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago