Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@infobip-api/sdk
Advanced tools
Node.js Client SDK for Infobip APIs.
For the @infobip-api/sdk
package versioning we use the Semantic Versioning scheme.
Node.js 14 is minimum supported version by this SDK.
Published under an MIT License.
Install the library by using the following command:
npm install @infobip-api/sdk
The package is intended to be used with an Infobip account. If you don't already have one, you can create a free trial account here.
This example shows you how to send a WhatsApp text message. The first step is to import the Infobip
and AuthType
dependencies.
import { Infobip, AuthType } from "@infobip-api/sdk";
Next, you need to create an instance of Infobip
with your API Base URL and authentication mechanism. You can find all this information on the Infobip Portal.
let infobip = new Infobip({
baseUrl: "YOUR_BASE_URL",
apiKey: "YOUR_API_KEY",
authType: AuthType.ApiKey,
});
After that you can access all the objects from infobip.channel
.
To send text message you can use the infobip.channel.whatsapp.send
method and add a payload:
let response = await infobip.channels.whatsapp.send({
type: "text",
from: "447860099299",
to: "447123456789",
content: {
text: "Hello World",
},
});
console.log(response);
To run tests position yourself in the project's root after you've installed dependencies and run:
npm run test
To build the project for the first time, position yourself in the project's root and run:
npm install
Subsequent builds can be triggered by using:
npm run build
After building a local version of this SDK, you can use it in a local Node.js project. First, position yourself in the new project root, and then run:
npm install ../path/to/infobip-node
FAQs
Node.js Client SDK for Infobip APIs.
We found that @infobip-api/sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.