From fdb8c69164cd215f9e2dd3027feadf167f06bb39 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Tue, 8 Dec 2009 18:05:23 -0600 Subject: [PATCH] Allow API.send_direct_message() to accept either user/screen_name/user_id --- CHANGELOG | 1 + tweepy/api.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 1560cee..e6c8308 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -21,6 +21,7 @@ during upgrade will be listed here. + API - retweet() method now works correctly - Added local trends method: trends_available() and trends_location() + - send_direct_message() now accepts either a user/screen_name/user_id for recipient of DM + tweepy.debug() enables httplib debug mode + New Sphinx documentation (Thanks Kumar!) in doc/ diff --git a/tweepy/api.py b/tweepy/api.py index e4b9874..0b46c93 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -188,7 +188,7 @@ class API(object): path = '/direct_messages/new.json', method = 'POST', parser = parse_dm, - allowed_param = ['user', 'text'], + allowed_param = ['user', 'screen_name', 'user_id', 'text'], require_auth = True ) -- 2.25.1