diff --git a/CHANGELOG b/CHANGELOG index cec880c..af49fc2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +Date 2024-04-04 +Version 1.9.10 +- Added get account information method +- Fixed updateContact method src param + Date 2023-06-27 Version 1.9.9 - removing utf8_encode function calls deprecated in PHP 8.2 diff --git a/src/account/AccountService.php b/src/account/AccountService.php index 3b8017d..9555bb1 100644 --- a/src/account/AccountService.php +++ b/src/account/AccountService.php @@ -12,6 +12,20 @@ */ class AccountService extends AbstractMaileonService { + /** + * Get account informations + * + * @return MaileonAPIResult + */ + public function getAccountInfo() + { + return $this->get( + "account/info", + [], + "application/json" + ); + } + /** * Get list of all account placeholders. * diff --git a/src/contacts/ContactsService.php b/src/contacts/ContactsService.php index a813a75..ce7b803 100644 --- a/src/contacts/ContactsService.php +++ b/src/contacts/ContactsService.php @@ -495,10 +495,10 @@ public function updateContact( $queryParameters['permission'] = $contact->permission->getCode(); } if (isset($src)) { - $queryParameters['src'] = $src; + $queryParameters['src'] = urlencode($src); } if (isset($subscriptionPage)) { - $queryParameters['page_key'] = $subscriptionPage; + $queryParameters['page_key'] = urlencode($subscriptionPage); } $doiMailingKey = trim((string) $doiMailingKey); if (!empty($doiMailingKey)) { diff --git a/version.txt b/version.txt index f8351fc..33eb13f 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ -dist.version = 1.9.9 -dist.version.stable = 1.9.9 +dist.version = 1.9.10 +dist.version.stable = 1.9.10