Skip to content

Repository files navigation

Phone Microservice

npm versionBuild Statuscodecov

Allows to interact with different communication providers through AMQP.

Providers

Account options

  • authToken: twilioAUTH_TOKEN,
  • from: twilio phone number,
  • sid: twilioSID,
  • transportOptions: twilio library options
  • type: 'twilio',

Usage

API documentation.

constAMQP=require('@microfleet/transport-amqp');constPhone=require('ms-mailer');constphone=newPhone({amqp: {// ms-amqp-transport options},accounts: {twilio_test: {// twilio account options}}});constphoneService=phone.connect();// e.g.constamqp=AMQP.connect();constmessage={account: 'twilio_test',message: 'Hello!'to: '+7 923 555 55 55'};amqp.publishAndWait('phone.message.predefined',message).then(response=>{// provider response});

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages