@vulog/aima-notifier
Version:
run `npm install @vulog/aima-notifier
33 lines (25 loc) • 577 B
Markdown
# @vulog/aima-notifier
run `npm install @vulog/aima-notifier
# sendEmail
Call the AiMA notifier component to send an email
```
import { getClient } from '@vulog/aima-client';
import { sendEmail } from '@vulog/aima-notifier';
const client = getClient({
apiKey: '...',
baseUrl: '...',
clientId: '...',
clientSecret: '...',
fleetId: '...',
});
const bodyData: SendEmailData = {
param1: 'val1',
};
const body: SendEmailParam = {
bodyData,
lang: 'en_GB',
to: ['test@test.com'],
type: 'test-type',
};
await sendEmail(client, body);
```