Make a GET request to the specified path.

@param string $path The path to the desired resource
@param array $params Optional parameters to send in the query string
@return TiendaNube/API/Response
167860
public function get($path, $params = null){
        $url_params = '';
        if (is_array($params)){
            $url_params = '?' . http_build_query($params);
        }
        
        return $this->_call('GET', $path . $url_params);
    }
991626
protected function buildRequest($path)
    {
        $request = new Request();
        $apiToken = $this->getApiToken();
        if ($apiToken !== '') {
            $request->getHeaders()->addHeaders(['API-Token' => $apiToken]);
        }
        $path = (string) $path;
        if ($path !== '' && $path[0] !== '/') {
            $path = '/' . $path;
        }
        $request->setUri($this->getEntryPoint() . $path);

        return $request;
    }
458884
public function delete($path, $params = array()) {
    $request = $this->request();
    $request = $this->prepareRequest($request);

    $response = $request->delete($this->endpoint . $path, $params);
    return $this->handleResponse($response);
  }
456336
protected function _getUri($path = '', $params = array()) {
        $url = $path;
        $url .= '?' . http_build_query($params, NULL, '&');
        return $url;
    }
1173181
public function get($url, array $params = [])
    {
       $queryString = '?' . http_build_query($params);

       $url = $url . $queryString;

       $request = new Request(
            $url,
            'GET'
        );

        return $this->send($request);
    }
1275917
public function get($uri, array $params = array())
    {

        $request = HttpFoundation\Request::create($uri, 'GET', $params);
        $uri = $request->getUri();

        $ch = $this->initCurlHandler($uri);
        return $this->makeRequest($ch);

    }
955
protected function get($path, array $parameters = array())
    {
        if (count($parameters) > 0) {
            $path .= '?' . http_build_query($parameters);
        }

        $response = $this->client->getHttpClient()->get($path);

        return $this->parseResponse($response);
    }
27226
public function get($path, $params = array(), $vars = array()) {
    $request = $this->request();
    $request = $this->prepareRequest($request);

    $response = $request->get($this->endpoint . $path, $params, $vars);
    return $this->handleResponse($response);
  }
18066
public function get($uri, array $params = array())
    {

        $uri .= '?' . http_build_query($params);

        $ch = $this->initCurlHandler($uri);
        return $this->makeRequest($ch);

    }
1013737
public function make($path = null, $params = [], $secure = false)
    {
        $this->secure = $secure;
        $params_index = strpos($path, '?');
        $query        = $params_index === false ? '' : parse_url($path, PHP_URL_QUERY);
        $path         = $params_index === false ? $path : substr($path, 0, $params_index);
        $path_params  = [];
        if ($query) {
            parse_str($query, $path_params);
        }

        $this->params = array_merge($path_params, $params);

        if (substr($path, 0, 4) === 'http') {
            $this->url = $path;
        } else {
            $scheme    = $this->secure ? 'https' : request()->getScheme();
            $site_root = request()->getHost() ? $scheme . '://' . request()->getHost() . '/' : '/';
            $this->url = $site_root . ltrim($path, '/');
        }

        return $this;
    }
138356
public function makeRequest($path, $params)
    {
        $this->dispatcher->dispatch('api.createUri', 
            new GenericEvent($this, array(
                'path' => $path,
                'params' => $params
            ))
        );

        $this->response = $this->browser->get($this->getUri());       

        $parsedResponse = json_decode($this->response->getContent(), true);
        if (array_key_exists('errors', $parsedResponse)) {
            throw new NewscoopApiException($parsedResponse);
        }

        return $this;
    }
304227
public function redirectToPath($path, $parameters = array())
    {
        $route = $this->getRouter()->generate($path, $parameters);

        return $this->redirect($route);
    }
85399
private function getUrl($path, $parameters = [])
    {
        $url = sprintf(
            '%s/v%d/%s?client_id=%s&client_secret=%s&v=%s%s',
            $this->configuration->getBasePath(),
            urlencode($this->configuration->getVersion()),
            trim($path, '/'),
            urlencode($this->configuration->getClientId()),
            urlencode($this->configuration->getClientSecret()),
            urlencode($this->configuration->getVersionedDate()),
            $this->parseParameters($parameters)
        );

        return $url;
    }
611751
public function get($path = '', $options = array())
    {
        return $this->client->get(
            $this->addDataToPathURI($path, $options),
            $this->addDataToRequest($options),
            $this->requestHeader
        );
    }
85298
protected function request($path, array $args = null)
    {
        $url = $this->_url . '/xml' . $path;
        if ($this->getProductId()) {
            $url .= '/productId/' . urlencode($this->getProductId());
        } elseif ($this->getProductCode()) {
            $url .= '/productCode/' . urlencode($this->getProductCode());
        }

        if (self::getRequestAdapter()->hasIp()) {
            if (!empty($args) && empty($args['remoteAddress'])) {
                // not a nested list (for import request)
                if (!is_array(current($args))) {
                    $args['remoteAddress'] = self::getRequestAdapter()->getIp();
                }
            } elseif (count($args) == 1 && !empty($args['remoteAddress'])) {
                $url .= '/remoteAddress/' . urlencode($args['remoteAddress']);
                unset($args['remoteAddress']);
            } else {
                $url .= '/remoteAddress/' . urlencode(self::getRequestAdapter()->getIp());
            }
        }

        return $this->_httpClient->request($url, $this->getUsername(), $this->_getPassword(), $args);
    }
971371
private function getUri($path, $params)
    {
        $uri = '/';
        if (strlen($path) > 0) {
            $uri = $path;
        }

        if (strlen($params) > 0) {
            $uri .= '?' . $params;
        }

        return $uri;
    }
1359891
public function get($path=null,$parameters=null)
    {
        if($parameters){
            foreach($parameters as $key=>$parameter)
                $this->addQuery($key,$parameter);
        }
        return $this->startRequest('GET',$path);
    }