Phase D
This commit is contained in:
@@ -85,6 +85,16 @@ final class HexaGameCloudApiClient
|
||||
);
|
||||
}
|
||||
|
||||
public function createServiceSso(string $externalServiceId, array $payload): array
|
||||
{
|
||||
return $this->request(
|
||||
'POST',
|
||||
'/api/v1/integrations/whmcs/services/' . rawurlencode($externalServiceId) . '/sso',
|
||||
$payload,
|
||||
'service:sso:' . $externalServiceId . ':' . ($payload['kind'] ?? 'service')
|
||||
);
|
||||
}
|
||||
|
||||
private function request(string $method, string $path, array $body = [], ?string $idempotencySuffix = null): array
|
||||
{
|
||||
$bodyJson = $body === [] ? '' : json_encode($body, JSON_THROW_ON_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user