Interface NotifyClientService


  • public interface NotifyClientService
    Notification endpoint allows to register device and send notification
    Version:
    September 15, 2017
    Author:
    Yuriy Movchan
    • 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)