def downloadxml(self):
request = self._connection.get('user/export')
return request.text
+
+ def changeEmail(self, email):
+ """Changes user's email.
+ """
+ data = {'_method': 'put', 'utf-8': '✓', 'user[email]': email, 'authenticity_token': repr(self._connection)}
+ request = self._connection.post('user')
+
+ def changeLanguage(self, lang):
+ """Changes user's email.
+ """
+ data = {'_method': 'put', 'utf-8': '✓', 'user[language]': lang, 'authenticity_token': repr(self._connection)}
+ request = self._connection.post('user')