aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-18 17:37:26 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-18 17:37:26 +0200
commit5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6 (patch)
treecd2116c42342da77c579c3ed8aa56a88d903ea86
parentAuthentication based on the session (when the user is already logged on the s... (diff)
downloadnewspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.tar.gz
newspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.tar.bz2
newspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.zip
Updated README.
-rw-r--r--README.rst18
1 files changed, 18 insertions, 0 deletions
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
========
bgstack15