Skip to content

cl8dep/sendiu-sdk

Repository files navigation

Sendiu SDK

A NodeJS SDK for the Sendiu SMS sender service.

How use it

You should create and instance of SenderService

const credentials: Credentials = {
  username: "username",
  password: "password"
};
const senderService = new SenderService(credentials)

Now you can send SMS using the following code snippet:

const request: SenderRequest = {
    country: "1",
    message: "Message body",
    messageFormat: 1,
    addresseeList: [
      {
        mobile: "65465464",
        correlationLabel: "Prueba SMS Web",
        url: "https://cita.vacunate.gob.do"
      }
    ]
  }

const response = await senderService.sendSms(request)

Documentation

About

A NodeJS SDK for the Sendiu SMS sender service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published