From 4054062ca550d1bea62df8d39914fef0ebec42e5 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 # Conflicts: # src/clients/constantcontact/provider/ConstantContact.php --- .../constantcontact/provider/ConstantContact.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/clients/constantcontact/provider/ConstantContact.php b/src/clients/constantcontact/provider/ConstantContact.php index 0a0696a..650cc5c 100644 --- a/src/clients/constantcontact/provider/ConstantContact.php +++ b/src/clients/constantcontact/provider/ConstantContact.php @@ -48,6 +48,16 @@ public function getDefaultScopes() return []; } + 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'])) {