Package io.jans.notify.client
Interface NotifyClientService
-
public interface NotifyClientService
Notification endpoint allows to register device and send notification- Version:
- September 15, 2017
- Author:
- Yuriy Movchan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RegisterDeviceResponse
registerDevice(String authorization, String token, String userData)
NotificationResponse
sendNotification(String authorization, String endpoint, String message)
-
-
-
Method Detail
-
registerDevice
@POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") @Path("/register") RegisterDeviceResponse registerDevice(@HeaderParam("Authorization") String authorization, @FormParam("token") String token, @FormParam("user_data") String userData)
-
sendNotification
@POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") @Path("/notify") NotificationResponse sendNotification(@HeaderParam("Authorization") String authorization, @FormParam("enpoint") String endpoint, @FormParam("message") String message)
-
-