1.7.0 • Published 8 months ago

notifyre-nodejs-sdk v1.7.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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
1.7.0

8 months ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago