sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.58k stars 1.31k forks source link

Direct message endpoints changes rebased #927

Closed dancernerd32 closed 6 years ago

dancernerd32 commented 6 years ago

Twitter is removing the direct messages endpoints on June 19th, and has already replaced them with new endpoints that take and return a different structure. One of the benefits to using a gem is that we can have as little disruption as possible in these changes, so I updated the methods that will no longer work with the twitter API to do the new thing, but take the as many of the same arguments as possible, and return the same structure as before as often as possible. My goal in this PR was to break as few things as possible in the transition.

sferik commented 6 years ago

Thanks again! This is awesome!