final protected function get($resource, array $fields = null)
    {
        // Initilize the request as post
        $this->init('get', $resource);

        // If exists query fields, append it
        if (is_array($fields)) {
            $query = $this->request->getQuery();
            foreach ($fields as $param => $value) {
                $query->set($param, $value);
            }
        }

        // Make the request using guzzle
        return $this->call();
    }
final protected function get($resource, array $fields = null)
    {
        // Initilize the request as post
        $this->init('get', $resource);

        // If exists query fields, append it
        if (is_array($fields)) {
            $query = $this->request->getQuery();
            foreach ($fields as $param => $value) {
                $query->set($param, $value);
            }
        }

        // Make the request using guzzle
        return $this->call();
    }
final protected function get ( $ resource , array $ fields = null ) { // Initilize the request as post $ this -> init ( 'get' , $ resource ) ; // If exists query fields, append it if ( is_array ( $ fields ) ) { $ query = $ this -> request -> getQuery ( ) ; foreach ( $ fields as $ param => $ value ) { $ query -> set ( $ param , $ value ) ; } } // Make the request using guzzle return $ this -> call ( ) ; }
Send GET http request.

@param string $resource Resouce to call eg. /users
@param array  $fields   Fields to send using query parameters

@return Response of the request

@todo
Send GET http request .