@@ 21-28 (lines=8) @@ | ||
18 | } |
|
19 | } |
|
20 | ||
21 | public function post($end_point, $fields) |
|
22 | { |
|
23 | try { |
|
24 | return new Response($this->request->post($end_point, $fields)); |
|
25 | } catch (Exception $e) { |
|
26 | return new Response($e->getResponse()); |
|
27 | } |
|
28 | } |
|
29 | ||
30 | public function put($end_point, $fields) |
|
31 | { |
|
@@ 30-37 (lines=8) @@ | ||
27 | } |
|
28 | } |
|
29 | ||
30 | public function put($end_point, $fields) |
|
31 | { |
|
32 | try { |
|
33 | return new Response($this->request->put($end_point, $fields)); |
|
34 | } catch (Exception $e) { |
|
35 | return new Response($e->getResponse()); |
|
36 | } |
|
37 | } |
|
38 | ||
39 | public function delete($end_point) |
|
40 | { |