- open X website and login
- open network tab of browser's DevTools
- find
auth_token
in request headerCookie
and bearer token in request headerAuthorization
- putting the tokens as parameters in the constructor
TwitterMediaFetch twitterMediaFetch = new TwitterMediaFetch(
/* proxy */, /* auth_token */, /* bearer token */);