@wolfxlabs/generic-sms
v1.0.1
Published
A generic-sms wrapper for wolf
Downloads
2
Readme
wolf 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;
}