Add optional "source" parameter to update_status.
authorKumar Appaiah <a.kumar@alumni.iitm.ac.in>
Thu, 10 Dec 2009 05:18:52 +0000 (23:18 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 10 Dec 2009 05:18:52 +0000 (23:18 -0600)
Note: source parameter only works with identi.ca API.
Twitter ignores this parameter.

Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
tweepy/api.py

index 0b46c93396d87c8a48941ee181e2d09ebd00eef4..d479c33409bc662c4b1bb97d07e9fc45e2672c7d 100644 (file)
@@ -104,7 +104,7 @@ class API(object):
         path = '/statuses/update.json',
         method = 'POST',
         parser = parse_status,
-        allowed_param = ['status', 'in_reply_to_status_id', 'lat', 'long'],
+        allowed_param = ['status', 'in_reply_to_status_id', 'lat', 'long', 'source'],
         require_auth = True
     )