Skip to content

dqn/tw-xauth

Repository files navigation

tw-xauth

npm version build status

Authenticate Twitter account using XAuth.

Installation

$ npm install @dqn/tw-xauth

Usage

const { xauth } = require('@dqn/tw-xauth');

xauth({
  screenName: 'SCREEN_NAME',
  password: 'PASSWORD',
  consumerKey: 'CjulERsDeqhhjSme66ECg',
  consumerSecret: 'IQWdVyqFxghAtURHGeGiWAsmCAGmdW3WmbEx6Hck',
}).then((res) => {
  console.log(res.oauth_token);
  console.log(res.oauth_token_secret);
});

License

MIT