get-twitter-followings
v1.0.2
Published
Get Twitter Followings from an User, inspired by 'get-twitter-followers' by Vladimir Starkov.
Downloads
2
Readme
get-twitter-followings
get followings for target username
Install
npm install --save get-twitter-followings
Usage
import getTwitterFollowings from 'get-twitter-followings';
getTwitterFollowings(tokens, 'aladyn172').then(followings => {
console.log(followings); // "User Objects" array https://dev.twitter.com/overview/api/users
});
API
getTwitterFollowings(tokens, username)
Return a promise that resolves to followings.
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 © AlaDyn172