Mailgun\Api\Domain::deleteCredential PHP Метод

deleteCredential() публичный Метод

Remove a set of SMTP credentials from the specified domain.
public deleteCredential ( string $domain, string $login ) : DeleteCredentialResponse | array | Psr\Http\Message\ResponseInterface
$domain string Name of the domain.
$login string SMTP Username.
Результат Mailgun\Resource\Api\Domain\DeleteCredentialResponse | array | Psr\Http\Message\ResponseInterface
    public function deleteCredential($domain, $login)
    {
        Assert::stringNotEmpty($domain);
        Assert::stringNotEmpty($login);
        $response = $this->httpDelete(sprintf('/v3/domains/%s/credentials/%s', $domain, $login));
        return $this->deserializer->deserialize($response, DeleteCredentialResponse::class);
    }