Bearer token for Message attachments


#1

Hi,

In the environment i’m working, unable to pass oauth 1 credentials (client id, secret, access token and token secret ). So, I have generated a bearer token using client id and client secret. I read in the documentation that bearer token can only work for “Application-only authentication”. I’m not able figure out if message attachments can be accessed through bearer token or not. Can anyone please confirm ?

Thanks & Regards,
Shanthi


#2

No, bearer tokens will not work with Direct Messages. You need the user token and secret.

https://developer.twitter.com/en/docs/direct-messages/message-attachments/guides/retrieving-media.html


#3

Thanks Andy for confirming :slight_smile:


closed #4