public function validateResponse(array $response)
    {
        $returnValue = false;
        if (isset($response['header'])
            && isset($response['header']['status'])
            && $response['header']['status'] >= 200
            && $response['header']['status'] < 300
        ) {
            $returnValue = true;
        }

        return $returnValue;
    }
public function validateResponse(array $response)
    {
        $returnValue = false;
        if (isset($response['header'])
            && isset($response['header']['status'])
            && $response['header']['status'] >= 200
            && $response['header']['status'] < 300
        ) {
            $returnValue = true;
        }

        return $returnValue;
    }
public function validateResponse ( array $ response ) { $ returnValue = false ; if ( isset ( $ response [ 'header' ] ) && isset ( $ response [ 'header' ] [ 'status' ] ) && $ response [ 'header' ] [ 'status' ] >= 200 && $ response [ 'header' ] [ 'status' ] < 300 ) { $ returnValue = true ; } return $ returnValue ; }
Validates the data responded by the API
Just checks the header status is successful.

@param array $response

@return boolean True if valid
Validates the data responded by the API Just checks the header status is successful .