Mailgun\Api\Domain::credentials PHP Method

credentials() public method

Returns a list of SMTP credentials for the specified domain.
public credentials ( string $domain, integer $limit = 100, integer $skip ) : CredentialResponse
$domain string Name of the domain.
$limit integer Number of credentials to return
$skip integer Number of credentials to omit from the list
return Mailgun\Resource\Api\Domain\CredentialResponse
    public function credentials($domain, $limit = 100, $skip = 0)
    {
        Assert::stringNotEmpty($domain);
        Assert::integer($limit);
        Assert::integer($skip);
        $params = ['limit' => $limit, 'skip' => $skip];
        $response = $this->httpGet(sprintf('/v3/domains/%s/credentials', $domain), $params);
        return $this->safeDeserialize($response, CredentialResponse::class);
    }