# @mfrtn/melipayamak-api

> melipayamak sms provider api

Latest version **0.1.0** (published 2024-03-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mfrtn/melipayamak-api
pnpm add @mfrtn/melipayamak-api
yarn add @mfrtn/melipayamak-api
bun add @mfrtn/melipayamak-api
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2024-03-26 |
| First published | 2024-03-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mohammad Foroutan |
| Maintainers | mfrtn |
| Keywords | sms, melipayamak, farsi, api, melipayamak-api, persian, sms-farsi, persian-sms |

## Links

- npm: https://www.npmjs.com/package/@mfrtn/melipayamak-api
- Repository: https://github.com/mfrtn/melipayamak-node-api
- Issues: https://github.com/mfrtn/melipayamak-node-api/issues
- npm.io page: https://npm.io/package/@mfrtn/melipayamak-api

## Recent versions

- 0.1.0 (latest) — 2024-03-26
- 0.0.2 — 2024-03-25
- 0.0.1 — 2024-03-25

## README

# Melipayamak NodeJs Api Module

This is a Node.js module that allows you to interact with the Melipayamak API.

## Installation

```bash
npm install --save @mfrtn/melipayamak-api
```

## Usage

### Initialization

Replace 'your-username' and 'your-password' with your actual username and password.

```typescript
import { MelipayamakApi } from '@mfrtn/melipayamak-api';
// OR
const { MelipayamakApi } = require('@mfrtn/melipayamak-api');

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

### Send a single SMS

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

### Send multiple SMS messages at once

```typescript
async function sendMultipleSMS() {
  const result = await api.send({
    from: 'your-number',
    to: ['recipient-number1', 'recipient-number2', 'recipient-number3'],
    text: 'Hello, world!'
    });
  console.log('Multiple SMS sent:', result);
}
```

## Future Developments

Stay tuned for more functions and features in the future updates of this module.

Feel free to customize and expand these examples according to your needs!

This README provides clear instructions on how to use the Melipayamak API module and includes examples for some of its functions.

For more information, visit the [Melipayamak official website](https://www.melipayamak.com/api/).

---
_Source: https://npm.io/package/@mfrtn/melipayamak-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
