Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you call the getUserTimeline() function, you don't get the images from the tweets #381

Open
GotOneShot opened this issue Jun 20, 2022 · 5 comments

Comments

@GotOneShot
Copy link

I'm calling the getUserTimeline() with additionalParams in my code, but I don't get the images from the tweets.
Especially, im meaning the tweet.getMedia().get(0).getUrl() call.
You don't have data under getMedia().
But if you do the same by calling the getTweet() function, the media is existing.

@redouane59
Copy link
Owner

Hey, you're right it looks like the media object is empty.
Did you try to use tweet.getAttachments().getMediaKeys()[0] ?

@GotOneShot
Copy link
Author

Hi I just tried, getAttachments().getMediaKeys()[0] also results in a empty (Null) Object

@redouane59
Copy link
Owner

Really strange, can you give me an example of tweet ID ? Because I tested yesterday and I had something for tweets with images.

@GotOneShot
Copy link
Author

Thanks for the reply, a test Tweet ID would be "1538911345906794500"

@redouane59
Copy link
Owner

Can you please do the same test from postman and see if you have the needed information ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants