Sends GET request
@param $url
@param array $vars
@return mixed|ApiResponse
@throws \Monetivo\Exceptions\MonetivoException
328366
public function get($url, array $vars = []) {
        // concat form_params to url if get method
        if(!empty($vars['form_params'])) {
            $url .= '?'.http_build_query($vars['form_params']);
            // don't forward it
            unset($vars['form_params']);
        }
        return $this->call('GET', $url, $vars);
    }
764187
public function curlGet($url, array $params = [], array $opts = [])
    {
        $params = $this->params($params);
        $queryStr = http_build_query($params);
        $opts[CURLOPT_POST] = false;
        $opts[CURLOPT_URL] = $queryStr ? "$url?$queryStr" : $url;

        return self::curl($opts);
    }
1040061
public function get($url, $data = array())
    {
        if (!empty($data)) {
            $url = $url . "?" . http_build_query($data);
        }
        $request = $this->webclient->createRequest('GET', $url);
        return $this->sendRequest($request);
    }
1149246
private function parseUrl( $url = '', Array $query_string_vars = [ ] ) {
        parse_str( parse_url( $url, PHP_URL_QUERY ), $this->query_string );
        $request_uri = trim( parse_url( $url, PHP_URL_PATH ), '/' );
        $this->request = trim( preg_replace( '#^/*index\.php#', '', $request_uri ), '/' );
        if ( ! empty( $query_string_vars ) ) {
            $this->query_string = array_merge( $this->query_string, $query_string_vars );
        }
    }
294687
protected function sendResponse(routeHandler $routeHandler, $vars)
    {
        // Start buffering, handle any echo-ed content on routeHandler
        ob_start();

        // Handle request
        $response = $this->handle($routeHandler->getHandler(), $vars);

        // Transfer buffer to view
        $content = ob_get_contents();

        ob_end_clean();

        // Check if the response is Instance or SubClass of Symfony Response
        if (($response instanceof SymfonyResponse) || (is_subclass_of($response, 'Symfony\Component\HttpFoundation\Response'))) {
            // Set Buffer to View
            $this->view->setBuffer($content);
        } else {
            // Set status header to 200
            $response = ResponseFactory::content($content);
        }

        $this->header->setResponse($response);
        $this->view->setResponse($response);

        // JSON Response
        if ($response->isJson() || $routeHandler->isFastExit()) {
            $response->sendHeaders();
            $this->view->render();
            die();
        }
    }
763327
public function getAppRequest($url = NULL)
	{
		$httpRequest = new \Nette\Http\Request($this->getUrlScriptForUrl($url ? : $this->url()));
		return $this->context->router->match($httpRequest);
	}
1282291
public function get($url, $params = array())
    {
        $client = new \Guzzle\Http\Client($this->_url);
        $request = $client->get($url, array(), array(
            'query' => $params
        ));
        $request->getCurlOptions()->set(CURLOPT_SSLVERSION, 1); // CURL_SSLVERSION_TLSv1
        $response = $client->send($request);
        if ($response->isSuccessful()) {
            return $response->json();
        } else {
            throw new \Exception("云片短信服务器未有效的响应请求");
        }
    }
300628
protected function request($url)
	{
		$response = null;
		try {
			$response = $this->getHttpClient()
				->get($url)
				->send();
		} catch (ClientErrorResponseException $e) {
			return Json::encode([
				'error' => $e->getMessage()
			]);
		}

		return $response->json();
	}
160875
public function get($url, $params=array(), $join=TRUE, $users=TRUE)
    {
      if ($join && $users)
        $url = $this->join($url);
      if ($join && !$users)
        $url = $this->join($url, FALSE);

      return $this->request(API::API_METHOD_GET, $url, $params);
    }
900656
public static function get( $url, $params=null, $headers=null, $return_header = false )
	{
		$self = new self();
		if ( is_array($params) ) {
			$params = http_build_query($params);
			if ( strpos($url, '?') == false ) {
				$url .= '?'.$params;
			} else {
				$url .= '&'.$params;
			}
		}

		$curl = $self->_curlInit($url, $headers);
		curl_setopt($curl, CURLOPT_HTTPGET, true);
		return $self->_doRequest($curl, $return_header);
	}
920163
public function execute($url, $params = [])
    {
        $uri = rtrim(rtrim($this->site, '/') . '/' . ltrim($url, '/') . '?' . http_build_query($params), '?');

        try {
            $result = $this->client->get($uri, ['timeout' => 10])->getBody();

            return ($this->format === 'json') ? json_decode($result) : (string) $result;
        } catch (\Exception $e) {
            if ($this->isRetry) {
                $msg = "Error connecting to the Extension Marketplace:\n" . $e->getMessage();
                throw new SatisQueryException($msg, $e->getCode(), $e);
            }
            $this->isRetry = true;
            $this->site = str_replace('https://', 'http://', $this->site);

            return $this->execute($url, $params);
        }
    }
402523
protected function request($url)
    {
        $response = $this->client->request('GET', $url);

        if ($response->getStatusCode() !== 200) {
            throw new \RuntimeException('Fetching rates request failed!');
        }

        $json = @json_decode($response->getBody(), true);

        if (!$json || !is_array($json) || !isset($json[0])) {
            throw new \LogicException('Get wrong response on rates requests!');
        }

        return $json[0];
    }
57891
public function get($url, $params = [])
    {
        if (is_array($url)) {
            return $this->mget($url, $params);
        }
        return $this->exec($this->buildRequest('GET', $url, $params));
    }
1295664
public function get($url, $params=array(), $token='', $secret='') {
        return $this->request('GET', $url, $params, $token, $secret);
    }
1368908
protected function getRequest($url, $parameters = [], $modified = null)
    {
        if (!empty($parameters)) {
            $this->parameters->addGet($parameters);
        }

        return $this->request($url, $modified);
    }
1291514
protected function apiPostCall($vars)
    {
        $this->setup();
        if ($this->connected == 1) {
            $url = '/2.0/';

            $data = '';
            foreach ($vars as $name => $value) {
                $data .= trim($name) . '=' . trim(urlencode($value)) . '&';
            }
            $data = substr($data, 0, -1);

            $out = "POST " . $url . " HTTP/1.1\r\n";
            $out .= "Host: " . $this->host . "\r\n";
            $out .= "Content-Length: " . strlen($data) . "\r\n";
            $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
            $out .= "\r\n";
            $out .= $data . "\r\n";
            $this->response = $this->socket->send($out, 'array');

            return $this->processResponse();
        } else {
            return false;
        }
    }
259665
public function curlGet( $url, array $params = array() )
  {
    if ( count( $params ) )
    {
      $url .= '?' . $this->generatePostFields( $params );
    }

    $this->setCurlParam( CURLOPT_URL, $url );
    $this->requestMethod = self::GET;

    return $this;
  }