Skip to content

Commit f6472e1

Browse files
Merge pull request #24 from xqueue/fix/MAP-900
fix(MAP-900): encoding issue for external ID, adding terash paremeter
2 parents 1677df2 + 881064a commit f6472e1

89 files changed

Lines changed: 6642 additions & 5981 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Date 2025-11-17
2+
Version 1.12.1
3+
- Fix encoding issue in path for unsubscribeContactByExternalId
4+
15
Date 2025-09-18
26
Version 1.12.0
37
- Added support for param trash in mailing endpoints

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Maileon's REST API documentation can be found [here](https://maileon.com/support
1818

1919
The API client requires `PHP >= 7.0` with `libxml` and `libcurl`.
2020

21-
Additionally all requests use an SSL encrypted API endpoint.
21+
Additionally, all requests use an SSL encrypted API endpoint.
2222
To enable SSL support in CURL, please follow these steps:
2323
1. Download the official SSL cert bundle by CURL from https://curl.haxx.se/ca/cacert.pem
2424
2. Save the bundle to a directory that can be accessed by your PHP installation
@@ -38,7 +38,7 @@ composer require xqueue/maileon-api-client
3838

3939
## Usage
4040

41-
The API client divides the features of Maileon's REST API into specific consumable services. Each service provides all functions of it's specific category.
41+
The API client divides the features of Maileon's REST API into specific consumable services. Each service provides all functions of its specific category.
4242

4343
The following services are available:
4444

@@ -48,8 +48,8 @@ Read, subscribe, edit, unsubscribe or delete contacts. Functions for individual
4848
* **Blacklists**
4949
Manage your blacklists.
5050

51-
* **Contactfilters**
52-
Segmentate your address pool by filter rules.
51+
* **Contact filters**
52+
Segment your address pool by filter rules.
5353

5454
* **Targetgroups**
5555
Manage distribution lists to specify who gets which mailing.
@@ -106,7 +106,7 @@ $contact = $contactsService->getContactByEmail('foo@bar.com')->getResult();
106106
*/
107107
```
108108

109-
* Request a contact identified by it's email address including their first name and a predefined custom field and also check for a valid response:
109+
* Request a contact identified by its email address including their first name and a predefined custom field and also check for a valid response:
110110
```php
111111
<?php
112112

@@ -264,13 +264,13 @@ do {
264264
);
265265

266266
foreach ($getUnsubscribers->getResult() as $unsubscriber) {
267-
printf('%s unsusbcribed in mailing %u at %s'.PHP_EOL,
267+
printf('%s unsubscribed in mailing %u at %s'.PHP_EOL,
268268
$unsubscriber->contact->email,
269269
$unsubscriber->mailingId,
270270
$unsubscriber->timestamp
271271
);
272272
}
273-
} while($getUnsubscribers->getResponseHeaders()['X-Pages'] >= $index);
273+
} while($getUnsubscribers->getResponseHeader('x-pages') >= $index);
274274
```
275275

276276
* Get [KPI](https://kpi.org/KPI-Basics) data for a specific mailing:

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
"require" : {
2323
"php" : "^7.0|^8.0",
2424
"ext-curl" : "*",
25-
"ext-mbstring" : "*",
26-
"ext-libxml" : "*"
27-
},
25+
"ext-dom": "*",
26+
"ext-json": "*",
27+
"ext-libxml" : "*",
28+
"ext-mbstring" : "*",
29+
"ext-simplexml": "*"
30+
},
2831
"require-dev" : {
2932
"phpunit/phpunit" : "^4",
3033
"phpstan/phpstan": "^1.8"

0 commit comments

Comments
 (0)