diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-18 17:37:26 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-18 17:37:26 +0200 |
commit | 5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6 (patch) | |
tree | cd2116c42342da77c579c3ed8aa56a88d903ea86 | |
parent | Authentication based on the session (when the user is already logged on the s... (diff) | |
download | newspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.tar.gz newspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.tar.bz2 newspipe-5f9b0dcc72dd491852e9adeb55ee2ac9a0bb0fc6.zip |
Updated README.
-rw-r--r-- | README.rst | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 ======== |