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

Media #1

Merged
merged 4 commits into from
Mar 21, 2022
Merged

Media #1

merged 4 commits into from
Mar 21, 2022

Conversation

nftechie
Copy link
Owner

No description provided.

Dan and others added 4 commits July 21, 2019 10:16
This change lets you upload media to twitter and check on the status of uploads that twitter is processing.

Note that unlike most of the other twitter functions, the upload function wraps three different API calls, the INIT, APPEND, and FINALIZE calls to media/upload.json. I did this instead of exposing them for clients to manage mostly because I couldn't see any case where a client would actually want to manage the individual phases of an upload.

Uploads use the base64 encoded content variant, rather than the raw file content upload variant, mostly because I couldn't get the raw file upload version to work and there was a limit to how much I was willing to fight the code to get things to work. It seems unlikely that the extra bandwidth required for the larger encoding will make any difference in any place this code is used.
@nftechie nftechie merged commit 24c4f95 into master Mar 21, 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
2 participants