From fb680551ae25f637c1f0e8695b2b39a6259196ce Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Thu, 27 Jun 2013 08:08:43 +0200 Subject: [PATCH] Started development of diaspy/settings.py --- diaspy/__init__.py | 1 + diaspy/settings.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 diaspy/settings.py diff --git a/diaspy/__init__.py b/diaspy/__init__.py index 172431a..1050ee8 100644 --- a/diaspy/__init__.py +++ b/diaspy/__init__.py @@ -4,3 +4,4 @@ import diaspy.streams as streams import diaspy.client as client import diaspy.people as people import diaspy.notifications as notifications +import diaspy.settings as settings diff --git a/diaspy/settings.py b/diaspy/settings.py new file mode 100644 index 0000000..a63a801 --- /dev/null +++ b/diaspy/settings.py @@ -0,0 +1,20 @@ +import json +import re +import urllib + + +"""This module provides access to user's settings on Diaspora*. +""" + + +class Settings(): + """This object is used to get access to user's settings on + Diaspora* and provides interface for downloading user's stuff. + """ + def __init__(self, connection): + self._connection = connection + + def downloadxml(self): + request = self._connection.get('user/export') + return request.text + -- 2.25.1