From e960d0b0af9211bd89b78f28837e449374be58a5 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Thu, 19 May 2011 10:37:12 +0100 Subject: [PATCH] Added method for direct_messages/show --- tweepy/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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', -- 2.25.1