Rohan_Kanojia

Untitled

Sep 14th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.75 KB | None | 0 0
  1. curl -X POST \
  2.   http://localhost:8080/communication-server-web/send/bulk-unicast \
  3.   -H 'cache-control: no-cache' \
  4.   -H 'content-type: application/json' \
  5.   -H 'postman-token: 1391dbda-48ba-07ec-389c-be3ba406f12a' \
  6.   -d '{
  7.  "event": "NOTIFICATION_SMS",
  8.  "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\"}]",
  9.  "clientId": "infosys-CHD",
  10.  "recipientMessagePayloadMap": [
  11.    {
  12.      "messagePayload": {
  13.        "emailPayload": {
  14.          "message": {
  15.            
  16.          }
  17.        },
  18.        "smsPayload": {
  19.          "message": {
  20.            "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"
  21.          }
  22.        },
  23.        "mobileNotificationPayload": {
  24.          "message": {
  25.            "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"
  26.          },
  27.          "redirectionUrl": {
  28.            
  29.          },
  30.          "header": "Message from transport team",
  31.          "extras": {
  32.            "messageType": "AUTO_PICKUP_DROP_SECOND_CUTOFF"
  33.          }
  34.        }
  35.      },
  36.      "recipient": {
  37.        "recipientUuid": "sample-recipient1",
  38.        "phoneNumbers": {
  39.          "primary": "7837310053"
  40.        }
  41.      }
  42.    },
  43.    {
  44.      "messagePayload": {
  45.        "emailPayload": {
  46.          "message": {
  47.            
  48.          }
  49.        },
  50.        "smsPayload": {
  51.          "message": {
  52.            "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"
  53.          }
  54.        },
  55.        "mobileNotificationPayload": {
  56.          "message": {
  57.            "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"
  58.          },
  59.          "redirectionUrl": {
  60.            
  61.          },
  62.          "header": "Message from transport team",
  63.          "extras": {
  64.            "messageType": "AUTO_PICKUP_DROP_SECOND_CUTOFF"
  65.          }
  66.        }
  67.      },
  68.      "recipient": {
  69.        "recipientUuid": "sample-recipient2",
  70.        "phoneNumbers": {
  71.          "primary": "9974547558"
  72.        }
  73.      }
  74.    }
  75.  ]
  76. }'
Add Comment
Please, Sign In to add comment