From 4fb774c29763959ec0e4f48b4185286004b88370 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Thu, 29 Aug 2024 09:43:16 +1000 Subject: [PATCH] Fix Constant Contact client not working --- src/clients/constantcontact/provider/ConstantContact.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clients/constantcontact/provider/ConstantContact.php b/src/clients/constantcontact/provider/ConstantContact.php index e125daf..0bf95e9 100644 --- a/src/clients/constantcontact/provider/ConstantContact.php +++ b/src/clients/constantcontact/provider/ConstantContact.php @@ -35,6 +35,11 @@ protected function getScopeSeparator(): string return ' '; } + protected function getAuthorizationHeaders($token = null): array + { + return ['Authorization' => 'Bearer ' . $token->getToken()]; + } + public function checkResponse(ResponseInterface $response, $data) { if (!empty($data['errors'])) {