| @@ 40-53 (lines=14) @@ | ||
| 37 | * |
|
| 38 | * @return IndexResponse |
|
| 39 | */ |
|
| 40 | public function index($limit = 100, $skip = 0) |
|
| 41 | { |
|
| 42 | Assert::integer($limit); |
|
| 43 | Assert::integer($skip); |
|
| 44 | ||
| 45 | $params = [ |
|
| 46 | 'limit' => $limit, |
|
| 47 | 'skip' => $skip, |
|
| 48 | ]; |
|
| 49 | ||
| 50 | $response = $this->httpGet('/v3/domains', $params); |
|
| 51 | ||
| 52 | return $this->safeDeserialize($response, IndexResponse::class); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Returns a single domain. |
|
| @@ 33-46 (lines=14) @@ | ||
| 30 | * |
|
| 31 | * @return IndexResponse |
|
| 32 | */ |
|
| 33 | public function index($limit = 100, $skip = 0) |
|
| 34 | { |
|
| 35 | Assert::integer($limit); |
|
| 36 | Assert::integer($skip); |
|
| 37 | ||
| 38 | $params = [ |
|
| 39 | 'limit' => $limit, |
|
| 40 | 'skip' => $skip, |
|
| 41 | ]; |
|
| 42 | ||
| 43 | $response = $this->httpGet('/v3/routes', $params); |
|
| 44 | ||
| 45 | return $this->safeDeserialize($response, IndexResponse::class); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Returns a single Route object based on its ID. |
|