1.0.0-dev.bcf1f7e • Published 1 year ago

indigo-sms v1.0.0-dev.bcf1f7e

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@indigo/sdk

Lightweight wrapper around the Indigo REST API.

Installation

npm install indigo-sms

Example

import Client from "indigo-sms"

const client = new Client({
  apiUrl: "https://sms.bene.dev/sms",
  apiToken: "YOUR_API_TOKEN",
})

client
  .send("004369917334800", "Hello from Indigo 🎉")
  .then(() => console.log("SMS sent."))
  .catch((err) => console.error(err))