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

Added host parameter to TwitterOAuth::post() method #1073

Closed
wants to merge 1 commit into from

Conversation

boris-glumpler
Copy link

I created this PR mainly to attach meta data to images. There are a couple other endpoints like media/subtitles/create or media/subtitles/delete, tho, where this change could come in handy.

There is already a similar PR #918, but that PR adds a new method for just the media/metadata/create endpoint, whereas this PR allows to set the host on the existing post method and can therefore be used for any of the other media endpoints as well. And since there is already a dedicated method for getting the upload status, I only made this change for the post method.

@boris-glumpler
Copy link
Author

boris-glumpler commented Jul 11, 2023

Seeing that this PR has been open a while, it's unlikely it'll be merged. I was able to work around the issue anyways, so while it'd make things a bit easier it isn't really necessary anymore.

The workaround just involves overriding the $host param in TwitterOAuth::apiUrl(), btw.

@boris-glumpler boris-glumpler deleted the upload-meta branch July 11, 2023 10:26
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.

None yet

1 participant