0.0.4 • Published 1 year ago

melipayamak-api-test v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Melipayamak NodeJs Api Module

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';
// Or
const { MelipayamakApi } = require('melipayamak-api');

const api = new MelipayamakApi({
  username: 'your-username',
  password: 'your-password'
});


// Example: Send a single SMS
async function sendSingleSMS() {
  const result = await api.send({
    from: 'your-number',
    to: 'recipient-number',
    text: 'Hello, world!'
    });
  console.log('Single SMS sent:', result);
}

// Example: Send multiple SMS messages at once
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.

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago