| @@ 46-57 (lines=12) @@ | ||
| 43 | /** |
|
| 44 | * @inheritdoc |
|
| 45 | */ |
|
| 46 | public function get($uri, array $queryParams = null) |
|
| 47 | { |
|
| 48 | $options = []; |
|
| 49 | ||
| 50 | if (!empty($queryParams)) { |
|
| 51 | $options['query'] = $queryParams; |
|
| 52 | } |
|
| 53 | ||
| 54 | $response = $this->makeRequest('GET', $uri, $options); |
|
| 55 | ||
| 56 | return $response; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @inheritdoc |
|
| @@ 62-73 (lines=12) @@ | ||
| 59 | /** |
|
| 60 | * @inheritdoc |
|
| 61 | */ |
|
| 62 | public function post($uri, array $postData = null) |
|
| 63 | { |
|
| 64 | $options = []; |
|
| 65 | ||
| 66 | if (!empty($postData)) { |
|
| 67 | $options['form_params'] = $postData; |
|
| 68 | } |
|
| 69 | ||
| 70 | $response = $this->makeRequest('POST', $uri, $options); |
|
| 71 | ||
| 72 | return $response; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @inheritdoc |
|