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

Extend media Type with variants property #44

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

emin-grbo
Copy link
Contributor

To be able to fetch the videos direct URL, we need the variants field and a Variant model.

Right now, you can only get a twitter URL of the media, but not of the video resource as well. Crucial part to be able to play the video in your app.

More details on this link
https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/media

That page is not fully up to date tho.
I joined a Twitter Chirp slack where I asked about fetching video/gif URL and got info that this is now possible (on the link it still says "Note that video URLs are not currently available, only static images.") 😅

Tested this in a playground here:
playground

@daneden , I hope this makes sense 🙌

@daneden daneden merged commit 04866fa into daneden:main Aug 11, 2022
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

Successfully merging this pull request may close these issues.

2 participants