cl8dep / sendiu-sdk

A NodeJS SDK for the Sendiu SMS sender service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:TypeScript 99.3%Language:JavaScript 0.7%