FeedHive / twitter-api-client

A user-friendly Node.js / JavaScript client library for interacting with the Twitter API.
MIT License
948 stars 84 forks source link

How to make calls using Bearer token? #74

Closed jankulma-turbine closed 3 years ago

jankulma-turbine commented 3 years ago

Hi,

Thanks for great lib!

There is endpoint to obtain bearer token, however I dont see in docs / code how to use it to make requests.

Is it supported?

SimonHoiberg commented 3 years ago

Hi @jankulma-turbine.

Currently, this is not supported - but it's something we're planning on adding soon. If you only need to read from the public parts of Twitter, you can simply provide the credentials you create directly from the Twitter Developer account.

Otherwise, you'll have to go through the 3-legged OAuth flow to obtain the credentials :blush:

I'll close this issue for now, and we will address this request at a later point.