Skip to content

Commit 05cedff

Browse files
committed
fix services base
1 parent 8ebe8d7 commit 05cedff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Service.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Service extends Base
88
{
99

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

1212
try {
1313

@@ -22,7 +22,7 @@ public static function Server(String $action = '', Array $data = []) {
2222

2323
$body = $data['body'] ?? [];
2424

25-
$response = self::defaultRequest($method, $base_uri, $action, $headers, $body);
25+
$response = self::defaultRequest($method, $base_uri, "", $headers, $body);
2626
return $response;
2727

2828
} catch (ClientException $e) {
@@ -34,7 +34,7 @@ public static function Server(String $action = '', Array $data = []) {
3434

3535
}
3636

37-
public static function Auth(String $action = '', Array $data = []) {
37+
public static function Auth(Array $data = []) {
3838

3939
try {
4040

@@ -48,7 +48,7 @@ public static function Auth(String $action = '', Array $data = []) {
4848

4949
$body = $data['body'] ?? [];
5050

51-
$response = self::defaultRequest($method, $base_uri, $action, $headers, $body);
51+
$response = self::defaultRequest($method, $base_uri, "", $headers, $body);
5252
return $response;
5353

5454
} catch (ClientException $e) {
@@ -79,7 +79,7 @@ public static function Plan(String $action = '', Array $data = []) {
7979

8080
$body = $data['body'] ?? [];
8181

82-
$response = self::defaultRequest($method, $base_uri, $action, $headers, $body);
82+
$response = self::defaultRequest($method, $base_uri, "", $headers, $body);
8383
return $response;
8484

8585
} catch (ClientException $e) {
@@ -91,7 +91,7 @@ public static function Plan(String $action = '', Array $data = []) {
9191

9292
}
9393

94-
public static function Profile(String $action = '', Array $data = []) {
94+
public static function Profile(Array $data = []) {
9595

9696
try {
9797

@@ -106,7 +106,7 @@ public static function Profile(String $action = '', Array $data = []) {
106106

107107
$body = $data['body'] ?? [];
108108

109-
$response = self::defaultRequest($method, $base_uri, $action, $headers, $body);
109+
$response = self::defaultRequest($method, $base_uri, "", $headers, $body);
110110
return $response;
111111

112112
} catch (ClientException $e) {

0 commit comments

Comments
 (0)