bear / python-twitter

A Python wrapper around the Twitter API.
Apache License 2.0
3.41k stars 957 forks source link

migrate api.PostDirectMessage to new twitter api #579

Closed jmingtan closed 6 years ago

jmingtan commented 6 years ago

This PR migrates the existing PostDirectMessage method to use the new Twitter API documented at https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event.

This is a breaking change as both the input format and the response format are quite different; for example screen_name is no longer supported as a parameter, and the return result also no longer contains hydrated recipient and sender objects.


This change is Reviewable

ganmedia commented 6 years ago

Any news about this?