src/ApiResource.php
protected static function staticRequest($method, $url, $params)
    {
        $requestor = new ApiRequestor();
        list($response, $code) = $requestor->request($method, $url, $params);
        return array($response, $code);
    }
protected static function staticRequest($method, $url, $params)
    {
        $requestor = new ApiRequestor();
        list($response, $code) = $requestor->request($method, $url, $params);
        return array($response, $code);
    }
protected static function staticRequest ( $ method , $ url , $ params ) { $ requestor = new ApiRequestor ( ) ; list ( $ response , $ code ) = $ requestor -> request ( $ method , $ url , $ params ) ; return array ( $ response , $ code ) ; }
Make the http GET or POST request

@param string $method
@param string $url
@param array|null $params

@return array
Make the http GET or POST request