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
Modifier and TypeMethodDescriptionregisterDevice(String authorization, String token, String userData, String platformId) sendNotification(String authorization, String endpoint, String message, String platformId)
-
Method Details
-
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, @FormParam("platform_id") String platformId) -
sendNotification
@POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") @Path("/notify") NotificationResponse sendNotification(@HeaderParam("Authorization") String authorization, @FormParam("endpoint") String endpoint, @FormParam("message") String message, @FormParam("platform_id") String platformId)
-