Guest User

Untitled

a guest
Jul 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def UpdateName(self, newName, in_reply_to_status_id=None):
  2. '''Mine
  3. '''
  4. if not self._oauth_consumer:
  5. raise TwitterError("The twitter.Api instance must be authenticated.")
  6.  
  7. url = '%s/account/update_profile.json' % self.base_url
  8.  
  9. data = {'name': newName}
  10. json = self._FetchUrl(url, post_data=data)
  11. data = self._ParseAndCheckTwitter(json)
  12. return User.NewFromJsonDict(data)
Add Comment
Please, Sign In to add comment