Melipayamak NodeJs Api Module (TEST Don't use on production)
This is a Node.js module that allows you to interact with the Melipayamak API.
Installation
npm install --save melipayamak-api
Usage
Examples
import { MelipayamakApi } from 'melipayamak-api';
const { MelipayamakApi } = require('melipayamak-api');
const api = new MelipayamakApi({
username: 'your-username',
password: 'your-password'
});
async function sendSingleSMS() {
const result = await api.send({
from: 'your-number',
to: 'recipient-number',
text: 'Hello, world!'
});
console.log('Single SMS sent:', result);
}
async function sendMultipleSMS() {
const result = await api.send({
from: 'your-number',
to: ['recipient-number1', 'recipient-number2', 'recipient-number3'],
text: 'Hello, world!'
});
console.log('Single SMS sent:', result);
}
Future Developments
Stay tuned for more functions and features in the future updates of this module.