How to Invoke MO SMS

1. Notify URL : https://mife.smart.com.kh:8243/smsmessaging/v1/ReceivedInfoNotification/241

2. Take 241

3. mysql> select * from subscriptions where mo_subscription_did=241;
+---------------------+-------------------------------------------------------------------+---------+--------------+-------------+------------------+------------------+-----------+
| mo_subscription_did | notifyurl                                                         | created | created_date | lastupdated | lastupdated_date | service_provider | is_active |
+---------------------+-------------------------------------------------------------------+---------+--------------+-------------+------------------+------------------+-----------+
|                 241 | http://vuclip.smart.com.kh/notifications/DeliveryInfoNotification | NULL    | NULL         | NULL        | NULL             | NULL             |      NULL |
+---------------------+-------------------------------------------------------------------+---------+--------------+-------------+------------------+------------------+-----------+

4. Use postman or Curl

http://vuclip.smart.com.kh/notifications/DeliveryInfoNotification

{

 "inboundSMSMessageNotification": {
  "callbackData": "smart_tune_pack_7774",
  "inboundSMSMessage": {
   "resourceURL": "https://mife.smart.com.kh:8243/smsmessaging/v1/ReceivedInfoNotification/838",
   "dateTime": "2018-09-07T10:52:00",
   "destinationAddress": "7774",
   "messageId": "test00001",
   "message": "test 100 by wso2telco",
   "senderAddress": "+855005747251"
  }
 }
}


Curl

curl -X POST http://vuclip.smart.com.kh/notifications/DeliveryInfoNotification -H 'authorization: Bearer b7d8f11d-d616-36a3-a7d8-4134919aa6a0' -H 'content-type: application/json' -d '{ "inboundSMSMessageNotification": { "callbackData": "smart_tune_pack_7774", "inboundSMSMessage": { "resourceURL": "https://mife.smart.com.kh:8243/smsmessaging/v1/ReceivedInfoNotification/838", "dateTime": "2018-09-07T10:52:00", "destinationAddress": "7774", "messageId": "test00001", "message": "test 100 by wso2telco", "senderAddress": "+855005747251" } } }'