twitter-api-client icon indicating copy to clipboard operation
twitter-api-client copied to clipboard

how to only authenticate a request?

Open andresogando opened this issue 4 years ago • 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"

andresogando avatar Aug 06 '21 17:08 andresogando