Java client for the Aerogear Push REST Service API.
(see also https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/index.html)
Actually working with aerogear unified pushserver 1.1.0
Attention - project in an early alpha ;-)
// create a instance of the PushServer you like to connect
PushServer pushServer = new PushServer("https://aerogear.example-server.at");
// for the most administrative calls you need to authenticate via keycloak
pushServer.setKeycloakCredentials( String username, String password, String clientId );
// create the push administration service
AergearAdminService admin = new DefaultAergearAdminService( pushServer );
// make the api call
List<PushApplicaitonResult> pushAppsOnServer = admin.showPushApplications();
Installation installation = new Installation();
installation.setDeviceToken("95f86df5b64e20a45e0e67782984abeb553a3232fcedf1d75407885798be67");
installation.setAlias("ftec Test Device");
adminService.registerDevice(installation, "your-variant-id", "your-variant-secret");
PushApplication newPushApp = new PushApplication();
newPushApp.setName( "My Test Application" );
newPushApp.setDescription( "created with ftec aerogear lib" );
newPushApp.setDeveloper( "Michi" );
adminService.createPushApplication( newPushApp );
HealthStatus healthStatus = adminService.showHealthInfo();
String healthSummary = healthStatus.getSummary();
Michael Fischelmayer