public function get($urlParams = array(), $url = null, $dataKey = null)
    {
        if (!$url) $url  = $this->generateUrl($urlParams);

        $response = HttpRequestJson::get($url, $this->httpHeaders);

        if (!$dataKey) $dataKey = $this->id ? $this->resourceKey : $this->pluralizeKey();

        return $this->processResponse($response, $dataKey);

    }
public function get($urlParams = array(), $url = null, $dataKey = null)
    {
        if (!$url) $url  = $this->generateUrl($urlParams);

        $response = HttpRequestJson::get($url, $this->httpHeaders);

        if (!$dataKey) $dataKey = $this->id ? $this->resourceKey : $this->pluralizeKey();

        return $this->processResponse($response, $dataKey);

    }
public function get ( $ urlParams = array ( ) , $ url = null , $ dataKey = null ) { if ( ! $ url ) $ url = $ this -> generateUrl ( $ urlParams ) ; $ response = HttpRequestJson :: get ( $ url , $ this -> httpHeaders ) ; if ( ! $ dataKey ) $ dataKey = $ this -> id ? $ this -> resourceKey : $ this -> pluralizeKey ( ) ; return $ this -> processResponse ( $ response , $ dataKey ) ; }
Generate a HTTP GET request and return results as an array

@param array $urlParams Check Shopify API reference of the specific resource for the list of URL parameters
@param string $url
@param string $dataKey Keyname to fetch data from response array

@uses HttpRequestJson::get() to send the HTTP request

@return array
Generate a HTTP GET request and return results as an array