From 9e4b419da36640c672c597b82d7309fe8c511705 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 5 Jul 2014 07:42:40 +0200 Subject: Updated README. --- README.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 884e3cc1..274fcd64 100644 --- a/README.rst +++ b/README.rst @@ -216,11 +216,10 @@ Delete an article: } >>> r = requests.delete("https://pyaggr3g470r.herokuapp.com/api/v1.0/articles/84574", auth=("your-email", "your-password")) >>> print r.status_code - 404 + 200 >>> print r.content { - "code": 404, - "message": "Article not found" + "message": "Article not found" } Feeds @@ -240,6 +239,8 @@ Update a feed: >>> 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)) +You can also create a feed with a POST request. + Delete a feed: .. code:: python -- cgit