npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

get-twitter-followers

2.0.0 • Public • Published

get-twitter-followers

NPM version Build Status Coveralls Status Dependency Status

get followers for target username

Install

npm install --save get-twitter-followers

Usage

import getTwitterFollowers from 'get-twitter-followers';
 
getTwitterFollowers(tokens, 'jsunderhood').then(followers => {
  console.log(followers); // "User Objects" array https://dev.twitter.com/overview/api/users
});

API

getTwitterFollowers(tokens, username)

Return a promise that resolves to followers.

tokens

Required
Type: Object

Valid Twitter developer credentials (tokens) in the form of a set of consumer and access tokens/keys. You can use twitter-tokens, to simplify getting tokens.

username

Required
Type: String

Twitter username.

License

MIT © Vladimir Starkov

install

npm i get-twitter-followers

Downloadsweekly downloads

14

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability