private String publishAll ( KeenProject project , Map < String , List < Map < String , Object > > > events ) throws IOException { // just using basic JDK HTTP library String urlString = String . format ( Locale . US , "%s/%s/projects/%s/events" , getBaseUrl ( ) , KeenConstants . API_VERSION , project . getProjectId ( ) ) ; URL url = new URL ( urlString ) ; return publishObject ( project , url , events ) ; }
Publishes a batch of events to the Keen service .