JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q37505F
  • License MIT

Simple twitter-API tool to list the information about the users that retweeted a given tweet.

Package Exports

  • retweet

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (retweet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.

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

const retweet = require("retweet")({
  consumer_key: "########",
  consumer_secret: "########",
  access_token_key: "########",
  access_token_secret: "########"
});

...with a twitter object

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
});