diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-23 16:47:16 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-23 16:47:16 +0200 |
commit | fc2fea7a261597af9f0fda3558a1fcb187043e8b (patch) | |
tree | 22d2d30c3c943f54e2432deaa1f1a33e8297e38a /README.rst | |
parent | Updated README. (diff) | |
download | newspipe-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.rst | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |