From 28ebeae985552633b10fc58eb813e54fbf49a1cc Mon Sep 17 00:00:00 2001 From: Chaitanya Surapaneni Date: Thu, 12 Jun 2014 11:44:32 -0500 Subject: [PATCH] Fix url encode --- kickbox/api/kickbox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kickbox/api/kickbox.py b/kickbox/api/kickbox.py index d09aa2d..a7a1a86 100644 --- a/kickbox/api/kickbox.py +++ b/kickbox/api/kickbox.py @@ -1,3 +1,5 @@ +import urllib + class Kickbox(object): """ @@ -16,6 +18,8 @@ def verify(self, email, options={}): """ body = options['query'] if 'query' in options else {} + email = urllib.quote(email) + response = self.client.get('/verify?email=' + email + '', body, options) return response