twxauth

1.1.0 • Public • Published

twxauth

Easy Twitter XAuth(?).

install

npm install twxauth

usage

'use strict';
const tx = require('twxauth');
 
const ck = "your consumerKey",
      cs = "your consumerSecret",
      un = "your twitter username",
      pw = "your twitter password";
 
(async() => {
  const token = await tx.twxauth(ck, cs, un, pw);
  console.log(token);
  /*
  **
  **  example result,
  **
  **{ accessToken: 'XXXX-XXXXXXXX',
  **  accessTokenSecret: 'XXXXXXXXXX',
  **  userId: 'XXXXXXXXXX',
  **  screenName: 'XXXXXX' }
  */
})();

Readme

Keywords

Package Sidebar

Install

npm i twxauth

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • 2vg