0.1.3 • Published 4 years ago

@amotarao/twitter v0.1.3

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

@amotarao/twitter

Twitter API Client on Node.js.
Supporting for Twitter API v1.1 and v2

import Twitter from '@amotarao/twitter';

const client = new Twitter({
  api_version: '2',
  consumer_key: '',
  consumer_secret: '',
  access_token_key: '',
  access_token_secret: '',
});


const params = {
  usernames: 'Twitter,TwitterJP',
  'user.fields': 'profile_image_url',
};
client.get('/users/by', params)
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.error(error);
  });

Installation

npm install @amotarao/twitter
0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.0

4 years ago

0.1.0

4 years ago