lib/Imgur/Api/AbstractApi.php
public function get($url, $parameters = [])
    {
        $httpClient = $this->client->getHttpClient();

        if (!empty($this->pager)) {
            $parameters['page'] = $this->pager->getPage();
            $parameters['perPage'] = $this->pager->getResultsPerPage();
        }

        $response = $httpClient->get($url, ['query' => $parameters]);

        return $httpClient->parseResponse($response);
    }
public function get($url, $parameters = [])
    {
        $httpClient = $this->client->getHttpClient();

        if (!empty($this->pager)) {
            $parameters['page'] = $this->pager->getPage();
            $parameters['perPage'] = $this->pager->getResultsPerPage();
        }

        $response = $httpClient->get($url, ['query' => $parameters]);

        return $httpClient->parseResponse($response);
    }
public function get ( $ url , $ parameters = [ ] ) { $ httpClient = $ this -> client -> getHttpClient ( ) ; if ( ! empty ( $ this -> pager ) ) { $ parameters [ 'page' ] = $ this -> pager -> getPage ( ) ; $ parameters [ 'perPage' ] = $ this -> pager -> getResultsPerPage ( ) ; } $ response = $ httpClient -> get ( $ url , [ 'query' => $ parameters ] ) ; return $ httpClient -> parseResponse ( $ response ) ; }
Perform a GET request and return the parsed response.

@param string $url

@return array
Perform a GET request and return the parsed response .