aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-23 16:47:16 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-23 16:47:16 +0200
commitfc2fea7a261597af9f0fda3558a1fcb187043e8b (patch)
tree22d2d30c3c943f54e2432deaa1f1a33e8297e38a /README.rst
parentUpdated README. (diff)
downloadnewspipe-fc2fea7a261597af9f0fda3558a1fcb187043e8b.tar.gz
newspipe-fc2fea7a261597af9f0fda3558a1fcb187043e8b.tar.bz2
newspipe-fc2fea7a261597af9f0fda3558a1fcb187043e8b.zip
It is now possible to update the status ('like' and 'readed') of an article with the REST API.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 022af5b9..dfc9b9a4 100644
--- a/README.rst
+++ b/README.rst
@@ -191,6 +191,17 @@ Add an article:
>>> print json.loads(r.content)["result"][0]["title"]
Sortie de pyAggr3g470r 5.3
+Update an article:
+
+.. code:: python
+
+ >>> payload = {"like":True, "readed":False}
+ >>> r = requests.put("https://pyaggr3g470r.herokuapp.com/api/v1.0/articles/65", headers=headers, auth=("your-email", "your-password"), data=json.dumps(payload))
+ >>> print r.content
+ {
+ "message": "ok"
+ }
+
Delete an article:
.. code:: python
bgstack15