From 05cedff8dda1b64f0caf989abeb20f2cae70b145 Mon Sep 17 00:00:00 2001 From: Jhon Date: Fri, 1 Mar 2024 19:11:13 -0300 Subject: [PATCH] fix services base --- src/Service.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Service.php b/src/Service.php index 466be1b..32e6f72 100644 --- a/src/Service.php +++ b/src/Service.php @@ -7,7 +7,7 @@ class Service extends Base { - public static function Server(String $action = '', Array $data = []) { + public static function Server(Array $data = []) { try { @@ -22,7 +22,7 @@ public static function Server(String $action = '', Array $data = []) { $body = $data['body'] ?? []; - $response = self::defaultRequest($method, $base_uri, $action, $headers, $body); + $response = self::defaultRequest($method, $base_uri, "", $headers, $body); return $response; } catch (ClientException $e) { @@ -34,7 +34,7 @@ public static function Server(String $action = '', Array $data = []) { } - public static function Auth(String $action = '', Array $data = []) { + public static function Auth(Array $data = []) { try { @@ -48,7 +48,7 @@ public static function Auth(String $action = '', Array $data = []) { $body = $data['body'] ?? []; - $response = self::defaultRequest($method, $base_uri, $action, $headers, $body); + $response = self::defaultRequest($method, $base_uri, "", $headers, $body); return $response; } catch (ClientException $e) { @@ -79,7 +79,7 @@ public static function Plan(String $action = '', Array $data = []) { $body = $data['body'] ?? []; - $response = self::defaultRequest($method, $base_uri, $action, $headers, $body); + $response = self::defaultRequest($method, $base_uri, "", $headers, $body); return $response; } catch (ClientException $e) { @@ -91,7 +91,7 @@ public static function Plan(String $action = '', Array $data = []) { } - public static function Profile(String $action = '', Array $data = []) { + public static function Profile(Array $data = []) { try { @@ -106,7 +106,7 @@ public static function Profile(String $action = '', Array $data = []) { $body = $data['body'] ?? []; - $response = self::defaultRequest($method, $base_uri, $action, $headers, $body); + $response = self::defaultRequest($method, $base_uri, "", $headers, $body); return $response; } catch (ClientException $e) {