atymic / twitter

Twitter API for Laravel 5.5+, 6.x, 7.x & 8.x
https://atymic.dev
MIT License
922 stars 290 forks source link

Video upload #62

Closed YOzaz closed 3 years ago

YOzaz commented 9 years ago

Marking it here to keep it on track - Twitter is going to add video upload support soon, so I would love this library to be updated as well (for Laravel 4).

https://twittercommunity.com/t/twitter-video-support-in-rest-and-streaming-api/31258/15

beeseenmedia commented 9 years ago

or laravel 5 :)

YOzaz commented 9 years ago

Any update for this? I think we need chunked upload possibility, described here: https://dev.twitter.com/rest/reference/post/media/upload-chunked

beeseenmedia commented 9 years ago

i edited the code to add video support. you can see it here. Note there is a second variable to the function which specified if media is a video

https://github.com/beeseenmedia/twitter/commit/d875ea630592f88c29523d060292c65a3f3dfd13

YOzaz commented 9 years ago

@beeseenmedia thanks for reply. In general, I think second parameter can be omited by detecting MIME type form media source.

beeseenmedia commented 9 years ago

indeed. it can. I just wanted a quick and dirty way to do it but yes a mime detection would make it neater, feel free to fork, modify and commit.

YOzaz commented 9 years ago

Pull request is here: https://github.com/thujohn/twitter/pull/105. @thujohn any chance you'll merge this soon?

YOzaz commented 8 years ago

Updated pull request to avoid memory issues: https://github.com/thujohn/twitter/pull/136

scottybo commented 5 years ago

Just in case someone else finds this thread, I've forked this package and added video support (docs for video near the bottom of the readme): https://github.com/scottybo/twitter

FrankChinedu commented 5 years ago

@scottybo i tried running the upload video but i get RuntimeException (400)

atymic commented 3 years ago

@reliq is this supported in 3.x?

reliq commented 3 years ago

@reliq is this supported in 3.x?

Unfortunately, I'm not able to confirm this actually works any better OTB in v3, uploadMedia works as it did in v2.

If this continues to be an issue for some people I could invest some more time into it.

atymic commented 3 years ago

This can be closed now right @reliq?

reliq commented 3 years ago

Yes. This is fixed @atymic