From 7577c82ee1f5e55abbc7d2ff6d8b600a03ecbc54 Mon Sep 17 00:00:00 2001 From: Daigo Tanaka Date: Sat, 6 Jul 2019 23:51:06 -0700 Subject: [PATCH 1/4] Fix "Invalid prospect email address" https://github.com/maxnaude/pardot-api-client/issues/1 --- pardot/resource.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pardot/resource.py b/pardot/resource.py index 6da2083..4eda64c 100644 --- a/pardot/resource.py +++ b/pardot/resource.py @@ -211,6 +211,8 @@ def get_response_content(self, request, **kwargs): self.login() payload['api_key'] = self.api_key + # Need to drop email so it won't confuse Pardot. + payload.pop('email') # run the request and retry once if the request fails with a # login error (Pardot API error code '1') From 6e263a3cf95d13f8f3ae293f38b4cfcebdf7073b Mon Sep 17 00:00:00 2001 From: Daigo Tanaka Date: Fri, 2 Aug 2019 18:11:46 -0700 Subject: [PATCH 2/4] add six version fix --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 45be7cf..1ea8297 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ install_requires=[ 'hammock==0.2.4', 'pprintpp==0.3.0', - 'six==1.10.0', + 'six>=1.10.0', ], test_suite='nose.collector', tests_require=['nose', 'responses'], From 27feebc9fda666af257f9afba23c369daa32355e Mon Sep 17 00:00:00 2001 From: Daigo Tanaka Date: Fri, 2 Aug 2019 18:38:12 -0700 Subject: [PATCH 3/4] Try fixing six version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1ea8297..ca81518 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ install_requires=[ 'hammock==0.2.4', 'pprintpp==0.3.0', - 'six>=1.10.0', + 'six~=1.11.0', ], test_suite='nose.collector', tests_require=['nose', 'responses'], From 6f2780442ce91faf7ce71d1b7e075eba4ec96175 Mon Sep 17 00:00:00 2001 From: Daigo Tanaka Date: Thu, 19 Mar 2020 22:50:55 +0000 Subject: [PATCH 4/4] Bump up six version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ca81518..18d849e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ install_requires=[ 'hammock==0.2.4', 'pprintpp==0.3.0', - 'six~=1.11.0', + 'six>=1.11.0', ], test_suite='nose.collector', tests_require=['nose', 'responses'],