aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-22 23:26:55 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-22 23:26:55 +0200
commita099f1b05034b77441e75b5d6eb47e064d235f5b (patch)
treec99d8881659909550387cc85bced1672c5504b91 /README.rst
parentUpdated translations. (diff)
downloadnewspipe-a099f1b05034b77441e75b5d6eb47e064d235f5b.tar.gz
newspipe-a099f1b05034b77441e75b5d6eb47e064d235f5b.tar.bz2
newspipe-a099f1b05034b77441e75b5d6eb47e064d235f5b.zip
The API has been updated.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst14
1 files changed, 10 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index b8783a3a..53df6b52 100644
--- a/README.rst
+++ b/README.rst
@@ -152,7 +152,7 @@ It is possible to get your articles *via* a dedicated Web service. See the examp
.. code:: python
>>> import requests, json
- >>> r = requests.get("https://pyaggr3g470r.herokuapp.com/articles.json/", auth=("your-email", "your-password"))
+ >>> r = requests.get("https://pyaggr3g470r.herokuapp.com/api/v1.0/articles", auth=("your-email", "your-password"))
>>> r.status_code
200
>>> rjson = json.loads(r.text)
@@ -165,9 +165,15 @@ Possible parameters:
.. code:: bash
- $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/articles.json/?filter_=unread&feed=24"
- $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/articles.json/?filter_=read&feed=24&limit=20"
- $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/articles.json/?filter_=all&feed=24&limit=20"
+ $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/api/v1.0/articles?filter_=unread&feed=24"
+ $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/api/v1.0/articles?filter_=read&feed=24&limit=20"
+ $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/api/v1.0/articles?filter_=all&feed=24&limit=20"
+
+To get an article:
+
+.. code:: bash
+
+ $ curl --user your-email:your-password "https://pyaggr3g470r.herokuapp.com/api/v1.0/articles/84566"
Donation
bgstack15