Commit | Line | Data |
---|---|---|
fb680551 MM |
1 | import json |
2 | import re | |
3 | import urllib | |
4 | ||
5 | ||
6 | """This module provides access to user's settings on Diaspora*. | |
7 | """ | |
8 | ||
9 | ||
10 | class Settings(): | |
11 | """This object is used to get access to user's settings on | |
12 | Diaspora* and provides interface for downloading user's stuff. | |
13 | """ | |
14 | def __init__(self, connection): | |
15 | self._connection = connection | |
16 | ||
17 | def downloadxml(self): | |
18 | request = self._connection.get('user/export') | |
19 | return request.text | |
20 |