Skip to content

team-avesta/avesta-sms-gateway

Repository files navigation

avesta-sms-gateway

avesta-sms-gateway is a module for send sms using different sms gateways. Currently we are supporting 2factor and Msg91.

Usage Example in typescript

import { SmsSender, TwoFactor } from '@avesta-oss/avesta-sms-gateway';
 
 const twoFactor = new TwoFactor({
   apiKey:<YOUR_2FACTOR_API_KEY>,
   senderId: <YOUR_SENDER_ID>,
   template:<YOUT_TEMPLATE_NAME>
 });
 
 smsSender.sendSms(twoFactor, 99XXXXXXXX,[{VAR1:123456}]);

Usage Example in javascript

const smsGateway = require('@avesta-oss/avesta-sms-gateway');

const twoFactor = new smsGateway.TwoFactor({
   apiKey:<YOUR_2FACTOR_API_KEY>,
   senderId: <YOUR_SENDER_ID>,
   template:<YOUT_TEMPLATE_NAME>
});

 smsGateway.smsSender.sendSms(twoFactor, 99XXXXXXXX,[{VAR1:123456}]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published