• http://www.gongmsgn.com/wp-content/uploads/2012/12/services_banner.jpg

    Blog

http://www.gongmsgn.com/wp-content/themes/flare/images/shadow-1.png

Multiple SMS To Multiple Destinations

Send multiple messages to multiple destinations by calling one API method only once. This allows you to send multiple, customised SMS messages to multiple recipients, or your entire database if necessary.

Some of the uses of this sending method include marketing and promotions, as in our sample code below, but also various notifications and alerts, e.g. in multiplayer gaming, social networks or news updates.

Your request should look like this:

POST /sms/1/text/multi HTTP/1.1
Host: unityapi.gongmsgn.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{  
   "messages":[  
      {  
         "from":"WineShop",
         "to":"2348056661831",
         "text":"Hey Hubert, delicious Tino Grand Cream Liquor is finally here. Feel free to visit us and try it for free!"
      },
      {  
         "from":"WineShop",
         "to":"2348098632373",
         "text":"Hi Peggy, we have fresh Ikeduru Palm Wine on our shelves. Drop by our store for a free degustation!"
      }
   ]
}

This way, you’ll send specific SMS messages to multiple destinations in a single request. The response will contain information about all the messages sent out:

HTTP/1.1 200 OK
Content-Type: application/json

{  
   "bulkId":"f5c4322c-10e7-a41e-5528-34fa0b032134",
   "messages":[  
      {  
         "to":"2348056661831",
         "status":{  
            "id":0,
            "groupId":0,
            "groupName":"ACCEPTED",
            "name":"MESSAGE_ACCEPTED",
            "description":"Message accepted"
         },
         "smsCount":1,
         "messageId":"4a54f0242f19-b832-1c39-a7e7a2095f351ed2"
      },
      {  
         "to":"2348098632373",
         "status":{  
            "id":0,
            "groupId":0,
            "groupName":"ACCEPTED",
            "name":"MESSAGE_ACCEPTED",
            "description":"Message accepted"
         },
         "smsCount":1,
         "messageId":"9404a69cef19-7a31-ba39-92ace76a5f351ed2"
      }
   ]
}

Full reports are standard at GONG, providing detailed stats that let you gauge the effectiveness of your campaigns and gather customer data.

More about statistics and reports:

Share Button

About GONG:

GONG is a global mobile transaction cloud service connecting mobile and IP service providers and enterprises through an in-house developed and operated communication services cloud. Our converged messaging, m-payments, push notifications, voice and unified communication services bring a mobile and IP dimension to any business. Offices in Nigeria and strategic partnerships with major telco groups enable us to provide seamless integration, delivery and user experience. Always looking for innovation and new ideas, fostering a customer-first business philosophy and having the reach to every part of the world makes us the reliable provider for many clients in Nigeria and worldwide.