@@ 46-52 (lines=7) @@ | ||
43 | ]); |
|
44 | } |
|
45 | ||
46 | public static function post($url, $params = [], $headers = [], $options = []) |
|
47 | { |
|
48 | return static::request(Method::POST, $url, [ |
|
49 | 'headers' => $headers, |
|
50 | 'form_params' => $params |
|
51 | ]); |
|
52 | } |
|
53 | ||
54 | public static function put($url, $params = [], $headers = [], $options = []) |
|
55 | { |
|
@@ 54-60 (lines=7) @@ | ||
51 | ]); |
|
52 | } |
|
53 | ||
54 | public static function put($url, $params = [], $headers = [], $options = []) |
|
55 | { |
|
56 | return static::request(Method::PUT, $url, [ |
|
57 | 'headers' => $headers, |
|
58 | 'form_params' => $params |
|
59 | ]); |
|
60 | } |
|
61 | ||
62 | public static function patch($url, $params = [], $headers = [], $options = []) |
|
63 | { |
|
@@ 62-68 (lines=7) @@ | ||
59 | ]); |
|
60 | } |
|
61 | ||
62 | public static function patch($url, $params = [], $headers = [], $options = []) |
|
63 | { |
|
64 | return static::request(Method::PATCH, $url, [ |
|
65 | 'headers' => $headers, |
|
66 | 'form_params' => $params |
|
67 | ]); |
|
68 | } |
|
69 | ||
70 | public static function delete($url, $params = [], $headers = [], $options = []) |
|
71 | { |