Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 14 additions & 0 deletions src/account/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions src/contacts/ContactsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions version.txt
Original file line number Diff line number Diff line change
@@ -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