0.24.1 • Published 1 month ago

@novu/generic-sms v0.24.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Novu GenericSms Provider

A Generic sms provider library for @novu/node

Usage

import { GenericSmsProvider } from './generic-sms.provider';

const provider = new GenericSmsProvider({
  baseUrl: 'https://api.generic-sms-provider.com',
  apiKeyRequestHeader: 'apiKey',
  apiKey: '123456',
  from: 'sender-id',
  idPath: 'message.id',
  datePath: 'message.date',
});

await provider.sendMessage({
  to: '+1234567890',
  content: 'SMS Content form Generic SMS Provider',
});

Options

interface GenericSmsProviderOptions {
  baseUrl: string;
  apiKeyRequestHeader: string;
  apiKey: string;
  secretKeyRequestHeader?: string;
  secretKey?: string;
  from: string;
  idPath?: string;
  datePath?: string;
  domain?: string;
  authenticateByToken?: boolean;
  authenticationTokenKey?: string;
}
0.24.1

1 month ago

0.24.0

2 months ago

0.23.1

3 months ago

0.23.0

3 months ago

0.22.0

5 months ago