Socket
Book a DemoInstallSign in
Socket

@breadhead/red-sms-client

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breadhead/red-sms-client

NodeJS provider for Red SMS

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

red-sms-client

Sms client for REDSMS.

Instalation

yarn add @breadhead/red-sms-client

Usage

import RedSmsClient from 'red-sms-client';


const smsClient = new RedSmsClient(login, apiKey);

Methods

  • sendSms

sendSms

const from = 'My First StartUp';
const to = '+79999999999';
const text = 'Hello, World!';

const result = await smsClient.sendSms(from, to, text);

returns

RedSmsResponse {
  messages: [
    {
      uuid: string,
      to: string,
    },
  ],
}

and throws

RedSmsException {
  prev: Error
  message: string
}

Keywords

red sms

FAQs

Package last updated on 25 Oct 2018

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