-
Notifications
You must be signed in to change notification settings - Fork 106
Feature request : Add media to tweet #18
Comments
Hey, I'd probably accept a pull request with that, but I'm not sure how to go about it and keep things clean. That said, since you can access the client instance directly, it should possible to do media tweets now with something like this:
That's untested, but it or something like it should work. |
thanks, I have for the time being gone down the access the client directly route - will fork and thing about a clean way to go about the addition of media |
Hey guys! I tried accessing the client directly and received the following error even though my app has read and write permissions... Any ideas?
/Library/Ruby/Gems/2.0.0/gems/twitter-5.16.0/lib/twitter/rest/response/raise_error.rb:15:in 'on_complete': Read-only application cannot POST. (Twitter::Error::Unauthorized)
|
That probably means that when you registered with Twitter, you setup an application to be read-only. You'll need to update those settings with Twitter, and maybe re-authenticate. |
Yeah I figured it out. It was initially set up as read/write but I had to escalate to DM privileges and re-authenticate anyway. Weird. Thanks for responding, and thanks for the tool! |
can we add media to tweets ? I think looking at the code this would only be achievable by changing the update method to use the client client.update_with_media method or preferably add another method around that
The text was updated successfully, but these errors were encountered: