protected function query($uri, $data = [])
    {
        $this->setActionUri($uri);

        try {
            $response = $this->client->get($this->uri, ['query' => $data]);
        } catch(ClientException $e) {
            $response = $e->getResponse();
        } catch(ServerException $e) {
            $response = $e->getResponse();
        }

        return $this->responseToJson($response);
    }
protected function query($uri, $data = [])
    {
        $this->setActionUri($uri);

        try {
            $response = $this->client->get($this->uri, ['query' => $data]);
        } catch(ClientException $e) {
            $response = $e->getResponse();
        } catch(ServerException $e) {
            $response = $e->getResponse();
        }

        return $this->responseToJson($response);
    }
protected function query ( $ uri , $ data = [ ] ) { $ this -> setActionUri ( $ uri ) ; try { $ response = $ this -> client -> get ( $ this -> uri , [ 'query' => $ data ] ) ; } catch ( ClientException $ e ) { $ response = $ e -> getResponse ( ) ; } catch ( ServerException $ e ) { $ response = $ e -> getResponse ( ) ; } return $ this -> responseToJson ( $ response ) ; }
Get a simple query

@param array $data
@return mixed
Get a simple query