From 4b756b80b8777522413e91a1afc43aafe166e16d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 5 Jul 2014 07:18:35 +0200 Subject: Updated README. --- README.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.rst') 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 -- cgit