Mailgun\Api\Domain::index PHP Method

index() public method

Returns a list of domains on the account.
public index ( integer $limit = 100, integer $skip ) : IndexResponse
$limit integer
$skip integer
return Mailgun\Resource\Api\Domain\IndexResponse
    public function index($limit = 100, $skip = 0)
    {
        Assert::integer($limit);
        Assert::integer($skip);
        $params = ['limit' => $limit, 'skip' => $skip];
        $response = $this->httpGet('/v3/domains', $params);
        return $this->deserializer->deserialize($response, IndexResponse::class);
    }