7
7
class Service extends Base
8
8
{
9
9
10
- public static function Server (String $ action = '' , Array $ data = []) {
10
+ public static function Server (Array $ data = []) {
11
11
12
12
try {
13
13
@@ -22,7 +22,7 @@ public static function Server(String $action = '', Array $data = []) {
22
22
23
23
$ body = $ data ['body ' ] ?? [];
24
24
25
- $ response = self ::defaultRequest ($ method , $ base_uri , $ action , $ headers , $ body );
25
+ $ response = self ::defaultRequest ($ method , $ base_uri , "" , $ headers , $ body );
26
26
return $ response ;
27
27
28
28
} catch (ClientException $ e ) {
@@ -34,7 +34,7 @@ public static function Server(String $action = '', Array $data = []) {
34
34
35
35
}
36
36
37
- public static function Auth (String $ action = '' , Array $ data = []) {
37
+ public static function Auth (Array $ data = []) {
38
38
39
39
try {
40
40
@@ -48,7 +48,7 @@ public static function Auth(String $action = '', Array $data = []) {
48
48
49
49
$ body = $ data ['body ' ] ?? [];
50
50
51
- $ response = self ::defaultRequest ($ method , $ base_uri , $ action , $ headers , $ body );
51
+ $ response = self ::defaultRequest ($ method , $ base_uri , "" , $ headers , $ body );
52
52
return $ response ;
53
53
54
54
} catch (ClientException $ e ) {
@@ -79,7 +79,7 @@ public static function Plan(String $action = '', Array $data = []) {
79
79
80
80
$ body = $ data ['body ' ] ?? [];
81
81
82
- $ response = self ::defaultRequest ($ method , $ base_uri , $ action , $ headers , $ body );
82
+ $ response = self ::defaultRequest ($ method , $ base_uri , "" , $ headers , $ body );
83
83
return $ response ;
84
84
85
85
} catch (ClientException $ e ) {
@@ -91,7 +91,7 @@ public static function Plan(String $action = '', Array $data = []) {
91
91
92
92
}
93
93
94
- public static function Profile (String $ action = '' , Array $ data = []) {
94
+ public static function Profile (Array $ data = []) {
95
95
96
96
try {
97
97
@@ -106,7 +106,7 @@ public static function Profile(String $action = '', Array $data = []) {
106
106
107
107
$ body = $ data ['body ' ] ?? [];
108
108
109
- $ response = self ::defaultRequest ($ method , $ base_uri , $ action , $ headers , $ body );
109
+ $ response = self ::defaultRequest ($ method , $ base_uri , "" , $ headers , $ body );
110
110
return $ response ;
111
111
112
112
} catch (ClientException $ e ) {
0 commit comments