src/Api/Message.php
public function show(string $url, bool $rawMessage = false)
    {
        Assert::notEmpty($url);

        $headers = [];
        if ($rawMessage) {
            $headers['Accept'] = 'message/rfc2822';
        }

        $response = $this->httpGet($url, [], $headers);

        return $this->hydrateResponse($response, ShowResponse::class);
    }
public function show(string $url, bool $rawMessage = false)
    {
        Assert::notEmpty($url);

        $headers = [];
        if ($rawMessage) {
            $headers['Accept'] = 'message/rfc2822';
        }

        $response = $this->httpGet($url, [], $headers);

        return $this->hydrateResponse($response, ShowResponse::class);
    }
public function show ( string $ url , bool $ rawMessage = false ) { Assert :: notEmpty ( $ url ) ; $ headers = [ ] ; if ( $ rawMessage ) { $ headers [ 'Accept' ] = 'message/rfc2822' ; } $ response = $ this -> httpGet ( $ url , [ ] , $ headers ) ; return $ this -> hydrateResponse ( $ response , ShowResponse :: class ) ; }
Get stored message.

@see https://documentation.mailgun.com/en/latest/api-sending.html#retrieving-stored-messages

@param bool $rawMessage if true we will use "Accept: message/rfc2822" header

@return ShowResponse|ResponseInterface
Get stored message .