| @@ 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. |
|
| @@ 31-44 (lines=14) @@ | ||
| 28 | * |
|
| 29 | * @return IndexResponse |
|
| 30 | */ |
|
| 31 | public function index($limit = 100, $skip = 0) |
|
| 32 | { |
|
| 33 | Assert::integer($limit); |
|
| 34 | Assert::integer($skip); |
|
| 35 | ||
| 36 | $params = [ |
|
| 37 | 'limit' => $limit, |
|
| 38 | 'skip' => $skip, |
|
| 39 | ]; |
|
| 40 | ||
| 41 | $response = $this->httpGet('/v3/routes', $params); |
|
| 42 | ||
| 43 | return $this->safeDeserialize($response, IndexResponse::class); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * Returns a single Route object based on its ID. |
|