FeedHive/twitter-api-client

how to only authenticate a request?

andresogando opened this issue · 0 comments

Hey how can I use this library to only generate an oauth1.0 authentication in order to perform a request using another library like 'Axios'..

for example:
I want to perform this request: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/message-attachments/guides/retrieving-media

but using 'oauth.get() doesn't work for me.

*** what do I want?/ need? ***

fetch('media_url', {headers: { client.authorize? }})

"client is the instance of the twitter-api-client"