Skip to content

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.

1 participant