ideamart-sdk
A lightweight unified Node.js wrapper for IdeaMart IdeaPro APIs.
Installation
In your command-line on Windows:
c:\> npm i ideamart-sdk --save
In your terminal on Mac OS X/Linux:
$npm i ideamart-sdk --save
How to use
In Node.js:
// Load full IdeaMart SMS SDK buildconst IdeaMart = ; // Load SMSReceiver and SMSSender Modules separatelyconst SMSReceiver = IdeaMartSMSReceiver;const SMSSender = IdeaMartSMSSender; // Define the mandatory data that are needed for the API to functionconst SERVER_URL = 'http://localhost:7000/sms/send';const APP_ID = 'APP_000001';const APP_PASSWORD = 'password'; // Create new sender instance to send a SMS.const sender = SERVER_URL APP_ID APP_PASSWORD; // Sample route to test if the request response is working correctly.app;
Dependencies
- axios: Promise based HTTP client for the browser and node.js
License
ISC