Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
messageapi-im
Advanced tools
The MessageAPI Node library provides convenient access to the MessageAPI API from applications written in server-side JavaScript.
Please keep in mind that this package is for use with server-side Node that uses MessageAPI App secret keys. To get your MessageAPI App secret you need to Sign up
See the Node API docs.
Install the package with:
npm install messageapi-im --save
The package needs to be configured with your account's secret key which you will get after Sign up. Require it with the key's value:
var messageApiIm = require('messageapi-im')('[YOUR_APP_SECRET]');
After sign up you need to complete these 3 steps to start sending messages
We have created this example using the Viber channel, to learn how to connect other channels, see the Node API docs.
messageApiIm.integrations.Create({
"type": "viber",
"auth_token": "[VIBER_AUTH_TOKEN]"
}).then(function (result) {
var integration = result.integration;
});
messageApiIm.webhooks.Create({
"webhook_url":"https://url.com"
}).then(function (result) {
var webhook = result.webhook;
});
messageApiIm.customers.Create({
"viber": {"user_id": "[USER_ID_OF_VIBER]"}
}).then(function (result) {
var customer = result.customer;
});
messageApiIm.messages.Send({
"customer_id": "<customer_id>",
"integration_id": "<integration_id>",
"data": {
"type": "text",
"content": "your text"}
}).then(function (result) {
var message = result.message;
});
See the Node API docs.
FAQs
Send and receive messages from any chat app, using one API
The npm package messageapi-im receives a total of 2 weekly downloads. As such, messageapi-im popularity was classified as not popular.
We found that messageapi-im demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.