3.1.0 • Published 11 months ago
ms-phone v3.1.0
Phone Microservice
Allows to interact with different communication providers through AMQP.
Providers
twilio
Account options
authToken
:twilio
AUTH_TOKEN
,from
:twilio
phone number,sid
:twilio
SID
,transportOptions
:twilio
library optionstype
: 'twilio',
Usage
API documentation.
const AMQP = require('@microfleet/transport-amqp');
const Phone = require('ms-mailer');
const phone = new Phone({
amqp: {
// ms-amqp-transport options
},
accounts: {
twilio_test: {
// twilio account options
}
}
});
const phoneService = phone.connect();
// e.g.
const amqp = AMQP.connect();
const message = {
account: 'twilio_test',
message: 'Hello!'
to: '+7 923 555 55 55'
};
amqp.publishAndWait('phone.message.predefined', message)
.then(response => {
// provider response
});
3.1.0
11 months ago
3.0.1
11 months ago
2.5.0-rc.2
4 years ago
2.5.0
4 years ago
2.5.0-rc.1
4 years ago
2.4.0
4 years ago
2.3.0
5 years ago
2.2.0
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago