From f0fb6809611153cf6079ceec77d51ac670c7e173 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 21 Feb 2011 15:48:04 -0500 Subject: [PATCH] Added optional get params. --- convore/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convore/api.py b/convore/api.py index fb804a8..80463f5 100644 --- a/convore/api.py +++ b/convore/api.py @@ -48,7 +48,9 @@ def get(*path, **kwargs): """ url = '%s%s%s' % (API_URL, '/'.join(map(str, path)), '.json') - r = requests.get(url) + params = kwargs.get('params', None) + + r = requests.get(url, params=params) error = kwargs.get('error', None) return _safe_response(r, error)