public List<Event> query(String evenQueryUrl) throws EventApiException {
logger.info("Query: "+evenQueryUrl);
WebResource wr = restClient.client.resource(evenQueryUrl);
wr.addFilter(new BearerTokenFilter(accessToken));
try{
wr.header("Authorization", createBearerAuthorizationHeader(accessToken));
ClientResponse cr = wr.get(ClientResponse.class);
if(cr.getStatus() >= 300){
String error = String.format("EvenApi.query() returned HTTP status: %s, message: %s",cr.getStatus(), cr.toString());
logger.error(error);
throw new EventApiException(error);