Skip to content

Commit

Permalink
fix services base
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Mar 1, 2024
1 parent 8ebe8d7 commit 05cedff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Service extends Base
{

public static function Server(String $action = '', Array $data = []) {
public static function Server(Array $data = []) {

try {

Expand All @@ -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) {
Expand All @@ -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 {

Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand All @@ -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 {

Expand All @@ -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) {
Expand Down

0 comments on commit 05cedff

Please sign in to comment.