Forum Stats

  • 3,816,583 Users
  • 2,259,207 Discussions
  • 7,893,514 Comments

Discussions

Is it possible to send bulk SMS messages using the SMSala Java SDK?

Sheikh Irfan
Sheikh Irfan Member Posts: 2 Green Ribbon

There is a lot of information on how to send bulk sms using Js, Python, and PHP SDKs, but does anyone know how to achieve this with Java?

The following code snippet demonstrates the Python implementation.

import Client from smsala.rest

account = "AC98e9a2817c2e0b4d38b42d1445ef42d9"

token = "your_auth_token"

client = Client(account, token)

notification = client.notify.services("ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")\

  .notifications.create(

   to_binding=[

       "{\"binding_type\":\"sms\",\"address\":\"+15555555555\"}",

       "{\"binding_type\":\"facebook-messenger\",\"address\":\"123456789123\"}"

   ],

   body="Hello Bob")