-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Enhance uploadMediaChunked function to enable video tweet publishing.… #1227
base: main
Are you sure you want to change the base?
Conversation
… Updated the uploadMediaChunked function to support video file handling and publishing on Twitter. This enhancement allows for efficient chunked upload of large video files and integrates the process with tweet publishing capabilities. Crucial for users who need to share video content directly via the API.
What is the exact function of this change? I can see some QOL stuff in here but nothing that would specifically assist in helping with Video uploading outside of the existing chunks. Also, there is an error on line 440 of TwitterOAuth.php |
I was having problems uploading videos with API v2. That's why I made some changes, but I think I missed some steps when transferring my code from my real project to GitHub Lib. If this library works for you, there's no problem, but it didn't work for me, and to make it work, I had to downgrade to API v1.1, perform some operations, then upgrade back to v2 to complete the remaining tasks. The main reason was that since v2 does not support video uploading, I had to start the process in v2, upload in v1.1, and publish in v2. I couldn't find an alternative solution to this problem when I researched. If you want to adapt it, you can see the original code I actively use on my project. I think all the code I changed is as follows:
|
Updated the uploadMediaChunked function to support video file handling and publishing on Twitter. This enhancement allows for efficient chunked upload of large video files and integrates the process with tweet publishing capabilities. Crucial for users who need to share video content directly via the API.