@Path(value="/rest/crm/notify/") public class CRMNotificationRest extends Object
| Constructor and Description |
|---|
CRMNotificationRest() |
| Modifier and Type | Method and Description |
|---|---|
String |
doNotify(String strIdDemand,
String strNotificationObject,
String strNotificationMessage,
String strNotificationSender)
Notification for a demand
|
String |
doNotifyV2(Integer nVersion,
String strRemoteId,
String strIdDemandType,
String strNotificationObject,
String strNotificationMessage,
String strNotificationSender)
notify a demand using Remote id and id demand Type
|
String |
getNumberNotificationsByGuidJson(javax.servlet.http.HttpServletRequest request,
String strGuid)
Get the Json of the number notifications not read by Demand Type by user Guid
The Api must be protected by signed request
|
String |
getNumberNotificationsJson(javax.servlet.http.HttpServletRequest request)
Get the Json of the number notifications not read by Demand Type
|
@POST @Path(value="demand") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") public String doNotify(@FormParam(value="id_demand") String strIdDemand, @FormParam(value="notification_object") String strNotificationObject, @FormParam(value="notification_message") String strNotificationMessage, @FormParam(value="notification_sender") String strNotificationSender)
strIdDemand - the id demandstrNotificationObject - the notification objectstrNotificationMessage - the notification messagestrNotificationSender - the sender@POST
@Path(value="/{version}/demand")
@Produces(value="text/plain")
@Consumes(value="application/x-www-form-urlencoded")
public String doNotifyV2(@PathParam(value="version")
Integer nVersion,
@FormParam(value="remote_id")
String strRemoteId,
@FormParam(value="id_demand_type")
String strIdDemandType,
@FormParam(value="notification_object")
String strNotificationObject,
@FormParam(value="notification_message")
String strNotificationMessage,
@FormParam(value="notification_sender")
String strNotificationSender)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type idstrNotificationObject - the notification objectstrNotificationMessage - the notification messagestrNotificationSender - the sender@GET @Path(value="userNotification") @Produces(value="application/json") public String getNumberNotificationsJson(@Context javax.servlet.http.HttpServletRequest request)
request - @GET
@Path(value="userNotificationbyguid/{user_guid}")
@Produces(value="application/json")
public String getNumberNotificationsByGuidJson(@Context
javax.servlet.http.HttpServletRequest request,
@PathParam(value="user_guid")
String strGuid)
request - http servlet requeststrGuid - the user GuidCopyright © 2018 City of Paris. All rights reserved.