Skip to content

Instantly share code, notes, and snippets.

@mort3za
Last active July 7, 2021 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mort3za/dd9836e26abc23be41433f5c5f7aea72 to your computer and use it in GitHub Desktop.
Save mort3za/dd9836e26abc23be41433f5c5f7aea72 to your computer and use it in GitHub Desktop.
Summary of what I understood from Twitter API

There is two versions of Twitter API: 1.1 & 2

Version 2 is still in development and subjects to changes. It's better to use v1.1 for now.

There is two versions of OAuth: 1.0a and 2

Version 1.0a is for doing actions on behalf of authenticated user. It needs consumer keys and access tokens.
Version 2 is for doing actions directly from your application. It's suitable to work with public API of twitter, e.g. get a user details.

To work with Oauth v1.0a, there is a nice Node.js package: https://github.com/FeedHive/twitter-api-client/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment