aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-05 07:18:35 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-05 07:18:35 +0200
commit4b756b80b8777522413e91a1afc43aafe166e16d (patch)
treeb6c41bbd2ee8deed28b473ce02c0ae4555f4c4b4
parentIt is now possible to tupdate a feed with REST API. (diff)
downloadnewspipe-4b756b80b8777522413e91a1afc43aafe166e16d.tar.gz
newspipe-4b756b80b8777522413e91a1afc43aafe166e16d.tar.bz2
newspipe-4b756b80b8777522413e91a1afc43aafe166e16d.zip
Updated README.
-rw-r--r--README.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 2034b0e0..884e3cc1 100644
--- a/README.rst
+++ b/README.rst
@@ -233,6 +233,13 @@ Add a feed:
>>> payload = {'link': 'http://blog.cedricbonhomme.org/feed'}
>>> r = requests.post("https://pyaggr3g470r.herokuapp.com/api/v1.0/feeds", headers=headers, auth=("your-email", "your-password"), data=json.dumps(payload))
+Update a feed:
+
+.. code:: python
+
+ >>> payload = {"title":"Feed new title", "description":"New description"}
+ >>> r = requests.put("https://pyaggr3g470r.herokuapp.com/api/v1.0/feeds/42", headers=headers, auth=("your-email", "your-password"), data=json.dumps(payload))
+
Delete a feed:
.. code:: python
bgstack15