| @@ 44-50 (lines=7) @@ | ||
| 41 | * |
|
| 42 | * @return Response |
|
| 43 | */ |
|
| 44 | public function get($uri, array $query = [], array $options = []) |
|
| 45 | { |
|
| 46 | if (!empty($query)) { |
|
| 47 | $options['query'] = $this->buildQuery($query); |
|
| 48 | } |
|
| 49 | return $this->guzzle->get($uri, $options); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @param string $uri |
|
| @@ 59-65 (lines=7) @@ | ||
| 56 | * |
|
| 57 | * @return Promise |
|
| 58 | */ |
|
| 59 | public function getAsync($uri, array $query = [], array $options = []) |
|
| 60 | { |
|
| 61 | if (!empty($query)) { |
|
| 62 | $options['query'] = $this->buildQuery($query); |
|
| 63 | } |
|
| 64 | return $this->guzzle->getAsync($uri, $options); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param array $query |
|