@@ 51-60 (lines=10) @@ | ||
48 | } |
|
49 | } |
|
50 | ||
51 | public function post($end_point, $fields) |
|
52 | { |
|
53 | try { |
|
54 | return $this->client->post($end_point, [ |
|
55 | 'body' => $this->prepareFields($fields), |
|
56 | ]); |
|
57 | } catch (Exception $e) { |
|
58 | return $e->getResponse(); |
|
59 | } |
|
60 | } |
|
61 | ||
62 | public function put($end_point, $fields) |
|
63 | { |
|
@@ 62-71 (lines=10) @@ | ||
59 | } |
|
60 | } |
|
61 | ||
62 | public function put($end_point, $fields) |
|
63 | { |
|
64 | try { |
|
65 | return $this->client->put($end_point, [ |
|
66 | 'body' => $this->prepareFields($fields), |
|
67 | ]); |
|
68 | } catch (Exception $e) { |
|
69 | return $e->getResponse(); |
|
70 | } |
|
71 | } |
|
72 | ||
73 | public function delete($end_point) |
|
74 | { |