diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-05 07:42:40 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-07-05 07:42:40 +0200 |
commit | 9e4b419da36640c672c597b82d7309fe8c511705 (patch) | |
tree | c241cd6988820f1146edce7e6e65e2a212a1a5f2 | |
parent | Updated REST API error codes. (diff) | |
download | newspipe-9e4b419da36640c672c597b82d7309fe8c511705.tar.gz newspipe-9e4b419da36640c672c597b82d7309fe8c511705.tar.bz2 newspipe-9e4b419da36640c672c597b82d7309fe8c511705.zip |
Updated README.
-rw-r--r-- | README.rst | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |