From: Harry Marr Date: Thu, 19 May 2011 09:37:12 +0000 (+0100) Subject: Added method for direct_messages/show X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e960d0b0af9211bd89b78f28837e449374be58a5;p=tweepy.git Added method for direct_messages/show --- diff --git a/tweepy/api.py b/tweepy/api.py index 2668787..3ca294f 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -212,6 +212,14 @@ class API(object): require_auth = True ) + """ direct_messages/show """ + get_direct_message = bind_api( + path = '/direct_messages/show/{id}.json', + payload_type = 'direct_message', + allowed_param = ['id'], + require_auth = True + ) + """ direct_messages/sent """ sent_direct_messages = bind_api( path = '/direct_messages/sent.json',