From: Joshua Roesslein Date: Wed, 9 Dec 2009 00:05:23 +0000 (-0600) Subject: Allow API.send_direct_message() to accept either user/screen_name/user_id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fdb8c69164cd215f9e2dd3027feadf167f06bb39;p=tweepy.git Allow API.send_direct_message() to accept either user/screen_name/user_id --- 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 )