Socket
Book a DemoInstallSign in
Socket

retweet

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retweet

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

1.2.1
latest
Source
npmnpm
Version published
Weekly downloads
13
160%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

twitter

FAQs

Package last updated on 16 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.