Mailgun\Api\Domain::connection PHP Method

connection() public method

Returns delivery connection settings for the specified domain.
public connection ( string $domain ) : ConnectionResponse | array | Psr\Http\Message\ResponseInterface
$domain string Name of the domain.
return Mailgun\Resource\Api\Domain\ConnectionResponse | array | Psr\Http\Message\ResponseInterface
    public function connection($domain)
    {
        Assert::stringNotEmpty($domain);
        $response = $this->httpGet(sprintf('/v3/domains/%s/connection', $domain));
        return $this->deserializer->deserialize($response, ConnectionResponse::class);
    }