Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X POST \
- http://localhost:8080/communication-server-web/send/bulk-unicast \
- -H 'cache-control: no-cache' \
- -H 'content-type: application/json' \
- -H 'postman-token: 1391dbda-48ba-07ec-389c-be3ba406f12a' \
- -d '{
- "event": "NOTIFICATION_SMS",
- "clientContext": "[{\"trip_id\":8145,\"communication_type\":\"AUTO_PICKUP_DROP_SECOND_CUTOFF\",\"shift_type\":\"LOGIN\",\"recipient_uuid\":\"EMinfosy-sCHD-$000-0000-000000001085\",\"shift_time\":\"2017-08-31 17:00:00.0\",\"shift_date\":\"2017-08-31 17:00:00.0\",\"recipient_type\":\"EMPLOYEE\"},{\"trip_id\":8145,\"communication_type\":\"AUTO_PICKUP_DROP_SECOND_CUTOFF\",\"shift_type\":\"LOGIN\",\"recipient_uuid\":\"EMinfosy-sCHD-$000-0000-000000000034\",\"shift_time\":\"2017-08-31 17:00:00.0\",\"shift_date\":\"2017-08-31 17:00:00.0\",\"recipient_type\":\"EMPLOYEE\"}]",
- "clientId": "infosys-CHD",
- "recipientMessagePayloadMap": [
- {
- "messagePayload": {
- "emailPayload": {
- "message": {
- }
- },
- "smsPayload": {
- "message": {
- "messageBody": "Hi Yaman Arora Singh You will be picked by PB-01-A-4485 at 8/31/17 3:56 PM for 17:00 To cancel contact helpdesk\n"
- }
- },
- "mobileNotificationPayload": {
- "message": {
- "messageBody": "Hi Yaman Arora Singh You will be picked by PB-01-A-4485 at 8/31/17 3:56 PM for 17:00 To cancel contact helpdesk\n"
- },
- "redirectionUrl": {
- },
- "header": "Message from transport team",
- "extras": {
- "messageType": "AUTO_PICKUP_DROP_SECOND_CUTOFF"
- }
- }
- },
- "recipient": {
- "recipientUuid": "sample-recipient1",
- "phoneNumbers": {
- "primary": "7837310053"
- }
- }
- },
- {
- "messagePayload": {
- "emailPayload": {
- "message": {
- }
- },
- "smsPayload": {
- "message": {
- "messageBody": "Hi Vikram Singh Kanwa You will be picked by PB-01-A-4485 at 8/31/17 4:03 PM for 17:00 To cancel contact helpdesk\n"
- }
- },
- "mobileNotificationPayload": {
- "message": {
- "messageBody": "Hi Vikram Singh Kanwa You will be picked by PB-01-A-4485 at 8/31/17 4:03 PM for 17:00 To cancel contact helpdesk\n"
- },
- "redirectionUrl": {
- },
- "header": "Message from transport team",
- "extras": {
- "messageType": "AUTO_PICKUP_DROP_SECOND_CUTOFF"
- }
- }
- },
- "recipient": {
- "recipientUuid": "sample-recipient2",
- "phoneNumbers": {
- "primary": "9974547558"
- }
- }
- }
- ]
- }'
Add Comment
Please, Sign In to add comment