NaNoWriMo Promotes Manuscription

    @avesta-oss/avesta-sms-gateway
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.10 • Public • Published

    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}]);

    Install

    npm i @avesta-oss/avesta-sms-gateway

    DownloadsWeekly Downloads

    1

    Version

    0.0.10

    License

    MIT

    Unpacked Size

    8.64 kB

    Total Files

    14

    Last publish

    Collaborators

    • tanknaresh7
    • teamavesta
    • vinaynb-at