sms1-ir
v1.1.3
Published
SMS1.ir API client for JS/TS/ESM/Node.js
Downloads
18
Maintainers
Readme
SMS1.ir API
sms1-ir
allows you to communicate with the SMS1.ir API to send SMS messages. The API key for your SMS1.ir accounts is required to create a new instance of the Sms1ir
class.
Installation
This package is available on npm as sms1-ir
. You can install it using either npm or yarn.
With npm:
npm install sms1-ir
With yarn:
yarn add sms1-ir
Using
To use this class in your Javascript or Typescript code, first import it:
import { Sms1ir } from "sms1-ir";
Then create a new instance of the Sms1ir class using your SMS1.ir API key.
const sms = new Sms1ir("YOUR_COMMON_API_KEY", "YOUR_PATTERN_API_KEY");
Then you can use the methods of the Sms1ir class to interact with the SMS1.ir API. For example, to send a single SMS message to a single recipient:
sms.send("Hi Sir!", "RECIPIENT_MOBILE_NUMBER");