Socket
Book a DemoInstallSign in
Socket

melipayamak-api-test

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

melipayamak-api-test

melipayamak sms provider api

0.1.2
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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';
// 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.

Keywords

sms

FAQs

Package last updated on 24 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.