From 81645149ba14af8ffd1c9171514eeb9a54be3d67 Mon Sep 17 00:00:00 2001 From: Yoan-Alexander Grigorov Date: Wed, 28 Feb 2024 10:48:39 +0100 Subject: [PATCH] :wrench: Changed to new sandbox URLs --- src/Authentication/ClientCredentials.php | 2 +- src/MyParcelComApi.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Authentication/ClientCredentials.php b/src/Authentication/ClientCredentials.php index f1ff3d35..1cf68e39 100644 --- a/src/Authentication/ClientCredentials.php +++ b/src/Authentication/ClientCredentials.php @@ -28,7 +28,7 @@ class ClientCredentials implements AuthenticatorInterface public function __construct( protected string $clientId, protected string $clientSecret, - protected string $authUri = 'https://sandbox-auth.myparcel.com', + protected string $authUri = 'https://auth.sandbox.myparcel.com', protected ?CacheInterface $cache = null, protected ?ClientInterface $httpClient = null ) { diff --git a/src/MyParcelComApi.php b/src/MyParcelComApi.php index a99ac03e..d1c8b183 100644 --- a/src/MyParcelComApi.php +++ b/src/MyParcelComApi.php @@ -60,7 +60,7 @@ class MyParcelComApi implements MyParcelComApiInterface */ public static function createSingleton( AuthenticatorInterface $authenticator, - string $apiUri = 'https://sandbox-api.myparcel.com', + string $apiUri = 'https://api.sandbox.myparcel.com', ClientInterface $httpClient = null, CacheInterface $cache = null, ResourceFactoryInterface $resourceFactory = null, @@ -82,7 +82,7 @@ public static function getSingleton(): ?self * If no resource factory is given, the default factory is used. */ public function __construct( - string $apiUri = 'https://sandbox-api.myparcel.com', + string $apiUri = 'https://api.sandbox.myparcel.com', ClientInterface $httpClient = null, CacheInterface $cache = null, ResourceFactoryInterface $resourceFactory = null,