Post button with twitter video

Asked 2 years ago, Updated 2 years ago, 86 views

I'd like to install a post button on the site on Twitter, but I'd like to embed a video into the tweet.I would like to embed the video itself and post it instead of the twitter card.
I would like the video itself to be posted by the user, not on the server.
If you know how to do it, please let me know.

twitter

2022-09-30 21:40

1 Answers

You can upload media objects such as images, videos, and GIF animations by using the media/upload endpoint of the Twitter API.

media/uploadTo upload a video using an endpoint, follow these steps:

More information about this endpoint is found in the Twitter document, so you should read it once.Also, a sample code for uploading asynchronously large media files exists in GitHub, which may help you write code.

Note:


2022-09-30 21:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.