JavaScript library for Eurobate SMS
This library provides a JavaScript/TypeScript wrapper around the Eurobate JSON APIs.
WARNING: Do not use this library from client side JavaScript, since you will make your password public. |
---|
It comes on two flavors.
- Axios for Node.js (Do not use it in client side JavaScript in the browser)
- Enonic XP
Usage in Node.js
Install with npm:
npm i eurobate-sms --save
You can now import the library and use the sendSMS
function. The TypeScript typings will provide added code security
when using it in IDEs.
const sendSMS = ; ;
Usage in Enonic
Use npm to install the dependency.
npm i eurobate-sms --save
;; const response = ; Eresponse
Building
To build the project run the following command:
npm run build