@katchnz/projecta v1.0.0
Project Title
Lakeel Messenger SDK
Getting Started
This is the best JavaScript kit for developing Lakeel Messaging API. It simplifies tasks of sending custom messages, creating a room and managing accounts.
Prerequisites
What things you need to install the software and how to install them
[Node.js](https://nodejs.org/en/download/)
[npm](https://www.npmjs.com/get-npm)
Installing
A step by step series of examples that tell you how to get a development env running
Adding the package into your project
npm install @katchnz/projecta --save
Done!
Examples
Authentication
First, you need to obtain an apikey and a secretkey from the management console. Copy those keys as strings and create a LM object.
let messenger = new projecta.LM(apiKey, secretKey, hostname);
Sending a message
Call the sendMessage() Input Room or User JID with a message you want to send!
let msg = messenger.sendMessage(jid, message);
msg.then(function(result) {
console.log(result);
})
You can check the result by calling .then()
Changing password (Admin permission required)
You can change user's password using changePassword() function Make sure you have an admin permission!
let msg = messenger.changePassword(jid, "new_pwd", true);
Versioning
Latest: 1.0.0
Authors
- Billie Thompson
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
Google Stack OverFlow