From 19bc9df9d123af90b4f79d9838f60e708111ee85 Mon Sep 17 00:00:00 2001 From: joamag Date: Fri, 1 Apr 2016 15:02:28 +0100 Subject: [PATCH] new collection methods --- src/budy/collection.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/budy/collection.py b/src/budy/collection.py index 5c80e3b..e8b4968 100644 --- a/src/budy/collection.py +++ b/src/budy/collection.py @@ -47,3 +47,8 @@ def list_collections(self, *args, **kwargs): **kwargs ) return contents + + def get_collection(self, id): + url = self.base_url + "collections/%d" % id + contents = self.get(url, auth = False) + return contents