Skip to content

Commit

Permalink
Remove duplicate '/' from request url
Browse files Browse the repository at this point in the history
  • Loading branch information
inserve-paul committed Jul 16, 2024
1 parent 7dd60fd commit cdbcc7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/API/CompanyAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CompanyAPI extends AbstractAPIClient
public function get(int $accountId): ?Company
{
$response = $this->apiClient->call(
'/GetCompany',
'GetCompany',
(string) json_encode(compact('accountId'))
);

Expand All @@ -39,7 +39,7 @@ public function get(int $accountId): ?Company
public function list(int $parentAccountId): array
{
$response = $this->apiClient->call(
'/GetCompanies',
'GetCompanies',
(string) json_encode(compact('parentAccountId'))
);

Expand All @@ -63,7 +63,7 @@ public function list(int $parentAccountId): array
public function getCreditLimit(int $accountId): ?CreditLimit
{
$response = $this->apiClient->call(
'/GetCreditLimit',
'GetCreditLimit',
(string) json_encode(compact('accountId'))
);

Expand Down
2 changes: 1 addition & 1 deletion src/API/MarketplaceAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MarketplaceAPI extends AbstractAPIClient
public function list(): array
{
$response = $this->apiClient->call(
'/GetMarketplaces',
'GetMarketplaces',
'{}'
);

Expand Down
2 changes: 1 addition & 1 deletion src/API/SubscriptionAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SubscriptionAPI extends AbstractAPIClient
public function get(int $accountId): ?Subscription
{
$response = $this->apiClient->call(
'/GetSubscription',
'GetSubscription',
(string) json_encode(compact('accountId'))
);

Expand Down
4 changes: 2 additions & 2 deletions src/API/UserAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UserAPI extends AbstractAPIClient
public function get(int $accountId): ?User
{
$response = $this->apiClient->call(
'/GetUser',
'GetUser',
(string) json_encode(compact('accountId'))
);

Expand All @@ -38,7 +38,7 @@ public function get(int $accountId): ?User
public function list(int $companyAccountId): array
{
$response = $this->apiClient->call(
'/GetUsers',
'GetUsers',
(string) json_encode(compact('companyAccountId'))
);

Expand Down

0 comments on commit cdbcc7c

Please sign in to comment.