aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-05 07:42:40 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-05 07:42:40 +0200
commit9e4b419da36640c672c597b82d7309fe8c511705 (patch)
treec241cd6988820f1146edce7e6e65e2a212a1a5f2 /README.rst
parentUpdated REST API error codes. (diff)
downloadnewspipe-9e4b419da36640c672c597b82d7309fe8c511705.tar.gz
newspipe-9e4b419da36640c672c597b82d7309fe8c511705.tar.bz2
newspipe-9e4b419da36640c672c597b82d7309fe8c511705.zip
Updated README.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst7
1 files changed, 4 insertions, 3 deletions
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
bgstack15