twttr
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

twttr

Minimal Twitter API client

Based on the twine sample created in the Building Command Line Applications in Node.js Pluralsight course.

Usage

Install with npm install --save twttr then:

const { TwitterClient } = require('twttr')

const t = new TwitterClient({
  consumerKey: 'abc123',
  consumerSecret: 'abc123',
  accessToken: 'abc123',
  accessTokenSecret: 'abc123'
})

t.get('1.1/account_activity/all/webhooks.json')
  .then(results => console.log(JSON.stringify(results.data,null,4)))
  .catch(error => console.log(error))

/twttr/

    Package Sidebar

    Install

    npm i twttr

    Weekly Downloads

    34

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • pofallon