public String createEvent ( FutureAPIResponse response ) throws ExecutionException , InterruptedException , IOException { int status = response . get ( ) . getStatus ( ) ; String message = response . get ( ) . getMessage ( ) ; if ( status != HTTP_CREATED ) { throw new IOException ( status + " " + message ) ; } return ( ( JsonObject ) parser . parse ( message ) ) . get ( "eventId" ) . getAsString ( ) ; }
Synchronize a previously sent asynchronous create event request .