Skip to main content

Posts

Showing posts from March, 2021

dialog sms service npm package

  JavaScript library to send SMS through Dialog telecommunication service This library will handle single or multiple SMS send feature with Dialog telecommunications service. npm install dialog-sms-service Usage const smsGateway = require ( 'dialog-sms-service' ) ; ( async ( ) => { try { // set configuration await smsGateway . setConfig ( { digest : 'dialog_msg_digest_here' , mask : 'dialog_msg_mask_here' , user : 'dialog_msg_user_here' , campaignName : 'dialog_msg_campaignName_here' , //optional } ) ; //send message const result = await smsGateway . sendSMS ( '07XXXXXXXX' , 'Dialog sms test' ) ; console . log ( result ) ; } catch ( error ) { console . log ( error ) ; } } ) ( ) ; How to work First needs to contact Dialog Axiata PLC to get credentials for the SMS gateway. Note:-  Please contact  Dialog Axiata PLC  in order to obtain foll...