Skip to content

Commit

Permalink
Merge pull request #209 from MyParcelCOM/change-sandbox-urls
Browse files Browse the repository at this point in the history
🔧  Changed to new sandbox URLs
  • Loading branch information
M4tini authored Feb 29, 2024
2 parents db81d15 + 8164514 commit c0f3085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Authentication/ClientCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
4 changes: 2 additions & 2 deletions src/MyParcelComApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit c0f3085

Please sign in to comment.