aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
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