protected function get($endpoint, $get = array()) {
		if ($get !== []) {
			$endpoint .= '?' . http_build_query($get);
		}

		$uri = new \TYPO3\Flow\Http\Uri($endpoint);
		$request = \TYPO3\Flow\Http\Request::create($uri, 'GET');
		$request->setContent('');
		$request = $this->authentication->authorizeRequest($request);
		$response = $this->requestEngine->sendRequest($request);

		return $response;
	}
protected function get($endpoint, $get = array()) {
		if ($get !== []) {
			$endpoint .= '?' . http_build_query($get);
		}

		$uri = new \TYPO3\Flow\Http\Uri($endpoint);
		$request = \TYPO3\Flow\Http\Request::create($uri, 'GET');
		$request->setContent('');
		$request = $this->authentication->authorizeRequest($request);
		$response = $this->requestEngine->sendRequest($request);

		return $response;
	}
protected function get ( $ endpoint , $ get = array ( ) ) { if ( $ get !== [ ] ) { $ endpoint .= '?' . http_build_query ( $ get ) ; } $ uri = new \ TYPO3 \ Flow \ Http \ Uri ( $ endpoint ) ; $ request = \ TYPO3 \ Flow \ Http \ Request :: create ( $ uri , 'GET' ) ; $ request -> setContent ( '' ) ; $ request = $ this -> authentication -> authorizeRequest ( $ request ) ; $ response = $ this -> requestEngine -> sendRequest ( $ request ) ; return $ response ; }
Method to do get requests to the API

@param string $endpoint The endpoint url to fetch, should not include a query string
@param array $get The GET arguments to add to the request
@return \TYPO3\Flow\Http\Response
Method to do get requests to the API