Modules

notifications

notifications.util

Module notifications

asmaj/notifications

0.1.0
Module Overview

This module provides APIs to send an SMS and email.

Usage

Using the SMS API to send a notification

Here's an example of how you can use the SMS API to send a notification:

Copy
configurable notifications:TwilioConfig twilioConfig = ?;
twilio:SmsResponse|error sendSmsResult = sendSms("0094077123456", "hello there!", twilioConfig);

Using the Email API to send a notification

Here's an example of how you can use the SMS API to send a notification:

Copy
configurable notifications:TwilioConfig twilioConfig = ?;
twilio:SmsResponse|error sendSmsResult = sendSms("0094077123456", "hello there!", twilioConfig);

Import

import asmaj/notifications;Copy

Metadata

Released date: over 1 year ago

Version: 0.1.0


Compatibility

Platform: any

Ballerina version: 2201.4.0

GraalVM compatible: Yes


Pull count

Total: 2

Current verison: 1


Weekly downloads


Other versions

0.2.0

0.1.0