🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

notifyre-nodejs-sdk

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifyre-nodejs-sdk

The official Notifyre NodeJS SDK library for use with the Notifyre API

1.8.0
latest
Source
npm
Version published
Weekly downloads
234
21.24%
Maintainers
0
Weekly downloads
 
Created
Source

Notifyre NodeJS SDK

A Node.js package for Notifyre Public API.

Installation

npm install notifyre-nodejs-sdk

User guide

The Notifyre API uses API tokens to authenticate requests.

If you don't have a Notifyre account already, you’ll need to create one here in order to use the API.

For more info, visit API docs website.

Notfyre API

Sample Usage

const { NotifyreAPI } = require('notifyre-nodejs-sdk');
const notifyreAPI = new NotifyreAPI('apiKey');
const faxService = notifyreAPI.getFaxService();

/// Retrieve list of fax numbers
faxService
  .listFaxNumbers()
  .then(function (response) {
    // handle success
    console.log(response);
  })
  .catch(function (error) {
    // handle error
    console.log(error);
  });

// The request above could also be done using async/await
async function listFaxNumbers() {
  try {
    const response = await faxService.listFaxNumbers();
    console.log(response);
  } catch (error) {
    console.log(error);
  }
}

Instance Methods

NameDescription
getFaxServiceReturns fax service instance
getSmsServiceReturns SMS service instance
getContactsServiceReturns Contacts service instance

Fax Service

Instance Methods

NameDescription
listSentFaxesReturns sent faxes
submitFaxSend fax
downloadSentFaxReturns sent fax as base64 string
listCoverPagesReturns cover pages
listReceivedFaxesReturns received faxes
downloadReceivedFaxReturns received fax as base64 string
listFaxNumbersReturns fax numbers

SMS Service

Instance Methods

NameDescription
listSentSmsReturns sent SMS
submitSmsSend SMS
getSmsReturns sent SMS details
listSmsRepliesReturns cover pages
getSmsReplyReturns received SMS details
listSmsNumbersReturns SMS numbers and sender IDs

MMS Service

Instance Methods

NameDescription
downloadMmsReplyReturns list of mms documents in message in Base64 string format

Contacts Service

Instance Methods

NameDescription
listContactsReturns address book contacts
createContactCreate address book contact
updateContactUpdate address book contact
deleteContactsDelete address book contacts
getContactReturns address book contact details
addContactsToGroupsAdds address book contacts to address book groups
removeContactsFromGroupRemove address book contacts from address book group
listGroupsReturns address book groups
createGroupCreate address book group
updateGroupUpdate address book group
deleteGroupsDelete address book groups

Utilities

Methods

NameDescription
verifySignatureVerifies Webhook signature

Testing

npm run test

For TDD

npm run test:watch

Keywords

notifyre

FAQs

Package last updated on 06 Jan 2025

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