Commits

pvalente  committed 9db4645

Biblioteca do twitter agora aceita parametros no postupdate.

  • Participants
  • Parent commits fd48396

Comments (0)

Files changed (1)

File twitter/twitter.py

     data = simplejson.loads(json)
     return Status.NewFromJsonDict(data)
 
-  def PostUpdate(self, text):
+  def PostUpdate(self, text, parameters={}):
     '''Post a twitter status message from the authenticated user.
 
     The twitter.Api instance must be authenticated.
       raise TwitterError("Text must be less than or equal to 140 characters.")
     url = 'http://twitter.com/statuses/update.json'
     data = {'status': text}
+    data.update(parameters)
     json = self._FetchUrl(url, post_data=data)
     data = simplejson.loads(json)
     return Status.NewFromJsonDict(data)