Allow API.send_direct_message() to accept either user/screen_name/user_id
authorJoshua Roesslein <jroesslein@gmail.com>
Wed, 9 Dec 2009 00:05:23 +0000 (18:05 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Wed, 9 Dec 2009 00:05:23 +0000 (18:05 -0600)
CHANGELOG
tweepy/api.py

index 1560ceee62abe5ab82e60a1a7b32d63d42275366..e6c83081b57190d9550e7da3f5dabf50e3375f52 100644 (file)
--- 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/
 
index e4b9874873313f1ffe233b65bf8496caf1d46bf4..0b46c93396d87c8a48941ee181e2d09ebd00eef4 100644 (file)
@@ -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
     )