Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Syl-gauthier/retweet
Simple twitter-API tool to list the information about the users that retweeted a given tweet
https://github.com/Syl-gauthier/retweet
Last synced: 9 days ago
JSON representation
Simple twitter-API tool to list the information about the users that retweeted a given tweet
- Host: GitHub
- URL: https://github.com/Syl-gauthier/retweet
- Owner: Syl-gauthier
- License: mit
- Created: 2017-10-15T17:13:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T16:52:02.000Z (about 7 years ago)
- Last Synced: 2024-10-14T05:07:01.691Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# retweet
(Since the the twitter REST API does allor to use cursor on the retweets, for now this module return 100 retweeter max)
Simple twitter-API tool to list the information about the users that retweeted a given tweet.
```javascript
const retweet = require("retweet")({
consumer_key: "########",
consumer_secret: "########",
access_token_key: "########",
access_token_secret: "########"
});retweet.get("########", {style: "tiny"}).then(function(result) {
console.log(result);
});
```
## Installation'npm install retweet'
## Autentification...
Credentials are require for twitter to authenticate your requests.
### ...with a credential object
```javascript
const retweet = require("retweet")({
consumer_key: "########",
consumer_secret: "########",
access_token_key: "########",
access_token_secret: "########"
});
```### ...with a twitter object
```javascript
const Twitter = require("twitter");var client = new Twitter({
consumer_key: process.env.TWITTER_CONS_KEY,
consumer_secret: process.env.TWITTER_CONS_SECRET,
access_token_key: process.env.TWITTER_ACCESS_TOKEN,
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET
});
```