🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

twwk

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

twwk

A simple API to manipulate twitter requests Oauth 1.0a through twurl.

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

Twwk

This tool is for who wants to use the twitter api with Oauth 1.0a easily using node.js. You need your access keys, and the whole thing is made by twurl :) This tool is made upon promises, because promises are awesome. Enjoy.

Installing

To install and use properly you must install twurl first:

  • Ruby >2.7
gem install twurl && sudo cp /usr/local/twurl $PWD/

Just set your consumer keys to start to use:

twurl authorize  --consumer-key <key> \ 
--consumer-secret <key-secret>

Getting Start

const twitt = require('twwk');

(async () => {
	const request = await twitt({
		method: 'GET',
		path: '/1.1/search/tweets.json?q=twurl',
		host: 'api.twitter.com' // default
	} /* you can put the host here too */);
	
	const { stdout: json } = request;
	console.log(json);
})();

You can choose any path, any host, and the methods that you want.

Keywords

twitter

FAQs

Package last updated on 29 Mar 2021

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