Releases: elliotjreed/royal-mail-tracking
Releases · elliotjreed/royal-mail-tracking
5.0.0
4.2.0
Adds optional parameter for specifying the base API endpoint, eg:
$tracking = (new \ElliotJReed\RoyalMail\Tracking\Events(
new \GuzzleHttp\Client(),
'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'12345678901234567890123456789012345678901234567890',
true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));
$signature = (new \ElliotJReed\RoyalMail\Tracking\Signature(
new \GuzzleHttp\Client(),
'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'12345678901234567890123456789012345678901234567890',
true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));
$summary = (new \ElliotJReed\RoyalMail\Tracking\Summary(
new \GuzzleHttp\Client(),
'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'12345678901234567890123456789012345678901234567890',
true, // Optional, when true (default: true) exceptions will be thrown for tracking errors
true, // Optional, when true (default: true) exceptions will be thrown for technical (eg. 500 HTTP response) errors
'https://api.royalmail.net/mailpieces/v2' // Optional, when set the default API endpoint can be overridden (default: 'https://api.royalmail.net/mailpieces/v2')
));
4.1.0
Fixes exception getResponse()
return type to allow null
3.0.0
Sets minimum required PHP version to 8.1 (PHP 8.0 no longer supported).
2.4.0
- Catches authorisation error in Event
- Fixes deprecation warning in PHP 8.2 for self reference in callback