From 5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 18 Jun 2014 17:37:26 +0200 Subject: Updated README. --- README.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.rst') diff --git a/README.rst b/README.rst index a57349db..c440e0f8 100644 --- a/README.rst +++ b/README.rst @@ -142,6 +142,24 @@ For example if you want to check for updates every 30 minutes, add this line to You must give the email address you use to login to pyAggr3g470r. +Web service +----------- + +It is possible to get your articles *via* a dedicated Web service. See the example below. + +.. code:: python + + >>> import requests, json + >>> r = requests.get("https://pyaggr3g470r.herokuapp.com/articles.json/", auth=("your-email", "your-password")) + >>> r.status_code + 200 + >>> rjson = json.loads(r.text) + >>> rjson["result"][0]["title"] + u'Sponsors required for KDE code sprint in Randa' + >>> rjson["result"][0]["date"] + u'Wed, 18 Jun 2014 14:25:18 GMT' + + Donation ======== -- cgit