From 5a8f51fc2666395e8ed2868e2403c21aa8ae42a2 Mon Sep 17 00:00:00 2001
From: Rudi Grinberg <rudi.grinberg@gmail.com>
Date: Tue, 30 Oct 2012 16:08:52 -0400
Subject: [PATCH] Fixed urlencode in ApiRequest

---
 python_apps/api_clients/api_client.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py
index 2a2353857..635467b35 100644
--- a/python_apps/api_clients/api_client.py
+++ b/python_apps/api_clients/api_client.py
@@ -83,7 +83,8 @@ class ApiRequest(object):
         # TODO : get rid of god damn urllib and replace everything with
         # grequests or requests at least
         final_url = self.url.params(**kwargs).url()
-        req = urllib2.Request(final_url, _post_data)
+        post_data = urllib.urlencode(_post_data)
+        req = urllib2.Request(final_url, post_data)
         response  = urllib2.urlopen(req).read()
         return json.loads(response)