1.0.1 • Published 6 years ago
tweeto v1.0.1
What is tweeto?
- tweeto is a node.js module for accessing Twitter's REST APIs.
- provide methods for application only authenticated endpoints.
- tweeto uses native ES6 promises.
Installation
npm install --save tweeto
Usage
var Tweeto = require('tweeto').Tweeto;
var configObject = {
consumer_key: your_consumer_key,
consumer_secret: your_consumer_secret
};
var tweeto = new Tweeto(configObject);
// Example to fetch user timeline
tweeto.getUserTimetine({count: 5, screen_name: 'twitter'})
.then(function(response) { console.log(response); })
.catch(function(err) { console.log(err); });
Documentation
List of all supported endpoints of Twitter's REST API.
# | Name | Description | More Info |
---|---|---|---|
1 | getUserTimetine | Returns a collection of the most recent Tweets posted by the user | view more |
2 | getFavoriteList | Returns the 20 most recent Tweets liked by the user | view more |
3 | getFollowersIds | Returns a cursored collection of user IDs for every user following the specified user | view more |
4 | getFollowersList | Returns a cursored collection of user objects for users following the specified user | view more |
5 | getFriendsIds | Returns a cursored collection of user IDs for every user the specified user is following (otherwise known as their “friends”) | view more |
6 | getFriendsList | Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their “friends”) | view more |
7 | getFriendshipsShow | Returns detailed information about the relationship between two arbitrary users | view more |
8 | getLists | Returns all lists the specified user subscribes to, including their own | view more |
9 | getListsMembers | Returns the members of the specified list. Private list members will only be shown if the authenticated user owns the specified list | view more |
10 | getListsMembersShow | Check if the specified user is a member of the specified list | view more |
11 | getListsMemberships | Returns the lists the specified user has been added to | view more |