diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-05 07:18:35 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-05 07:18:35 +0200 |
commit | 4b756b80b8777522413e91a1afc43aafe166e16d (patch) | |
tree | b6c41bbd2ee8deed28b473ce02c0ae4555f4c4b4 | |
parent | It is now possible to tupdate a feed with REST API. (diff) | |
download | newspipe-4b756b80b8777522413e91a1afc43aafe166e16d.tar.gz newspipe-4b756b80b8777522413e91a1afc43aafe166e16d.tar.bz2 newspipe-4b756b80b8777522413e91a1afc43aafe166e16d.zip |
Updated README.
-rw-r--r-- | README.rst | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |