mattdonnelly / Swifter

[DEPRECATED] :bird: A Twitter framework for iOS & OS X written in Swift
MIT License
2.37k stars 388 forks source link

Patched Media Upload for PostTweet #316

Closed ramikalai closed 4 years ago

ramikalai commented 4 years ago

Twitter's API doesn't like it when the media_category is set on an uploaded media file when that media file is to be used in a tweet.

Made the media_category optional.

Kyome22 commented 4 years ago

@ramikalai @meteochu Thank you for supporting my miss. But I think making media_category optional is not a fundamental solution for this issue. I read the official reference again and fixed the code. How do you think? https://github.com/mattdonnelly/Swifter/pull/317#issue-461203282

meteochu commented 4 years ago

Now that #317 is merged, I don't think we need this one since that one follows the official API guideline. I'm closing this now.