12345678import { createClient } from "egov.js"; const client = createClient({ baseUrl: "https://ws-message.e.gov.ph", headers: { "X-EMESSAGE-Auth": process.env.EMESSAGE_TOKEN!, }, });
eMessage.sendSmsPOST /messaging/v1/sms/push sends an SMS message to the supplied mobile number using the configured eMessage token.12345678910import { eMessage } from "egov.js"; const message = await eMessage.sendSms({ client, body: { message: "Your application is ready for review.", number: "+639171234567", }, throwOnError: true, });