public static function createFromGlobals()
    {
        $body = file_get_contents('php://input');
        $queryParameters = $_GET;
        $requestTimestamp = $_SERVER['HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP'];
        $signature = $_SERVER['HTTP_MESSAGEBIRD_SIGNATURE'];

        $signedRequest = new SignedRequest();
        $signedRequest->loadFromArray(compact('body', 'queryParameters', 'requestTimestamp', 'signature'));

        return $signedRequest;
    }
public static function createFromGlobals()
    {
        $body = file_get_contents('php://input');
        $queryParameters = $_GET;
        $requestTimestamp = $_SERVER['HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP'];
        $signature = $_SERVER['HTTP_MESSAGEBIRD_SIGNATURE'];

        $signedRequest = new SignedRequest();
        $signedRequest->loadFromArray(compact('body', 'queryParameters', 'requestTimestamp', 'signature'));

        return $signedRequest;
    }
public static function createFromGlobals ( ) { $ body = file_get_contents ( 'php://input' ) ; $ queryParameters = $ _GET ; $ requestTimestamp = $ _SERVER [ 'HTTP_MESSAGEBIRD_REQUEST_TIMESTAMP' ] ; $ signature = $ _SERVER [ 'HTTP_MESSAGEBIRD_SIGNATURE' ] ; $ signedRequest = new SignedRequest ( ) ; $ signedRequest -> loadFromArray ( compact ( 'body' , 'queryParameters' , 'requestTimestamp' , 'signature' ) ) ; return $ signedRequest ; }
Create a new SignedRequest from PHP globals.

@return SignedRequest
@throws ValidationException when a required parameter is missing.
Create a new SignedRequest from PHP globals .