Added direct_messages/events/show and direct_messages/events/list in Twython #215

This commit is contained in:
Manuel Cortez 2018-07-18 09:29:00 -05:00
parent 019e83c55b
commit b15eed9697

View File

@ -285,7 +285,7 @@ class EndpointsMixin(object):
Docs: https://dev.twitter.com/docs/api/1.1/get/direct_messages
"""
return self.get('direct_messages', params=params)
return self.get('direct_messages/events/list', params=params)
get_direct_messages.iter_mode = 'id'
def get_sent_messages(self, **params):
@ -303,7 +303,7 @@ class EndpointsMixin(object):
Docs: https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
"""
return self.get('direct_messages/show', params=params)
return self.get('direct_messages/events/show', params=params)
def destroy_direct_message(self, **params):
"""Destroys the direct message specified in the required id parameter