
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
The Unimatrix Node.js SDK provides convenient access to integrate communication capabilities into your Node.js applications using the Unimatrix HTTP API. The SDK provides support for sending SMS, 2FA verification, and phone number lookup.
Before you begin, you need an Unimatrix account. If you don't have one yet, you can sign up for an Unimatrix account and get free credits to get you started.
Check out the documentation at unimtx.com/docs for a quick overview.
The recommended way to install the Unimatrix SDK for Node.js is to use the npm package manager, which is available on npm.
Run the following command to add uni-sdk
as a dependency to your project:
npm i uni-sdk
or use Yarn:
yarn add uni-sdk
The following example shows how to use the Unimatrix Node.js SDK to interact with Unimatrix services.
const { UniClient } = require('uni-sdk')
const client = new UniClient({
accessKeyId: 'your access key id',
accessKeySecret: 'your access key secret'
})
or you can configure your credentials by environment variables:
export UNIMTX_ACCESS_KEY_ID=your_access_key_id
export UNIMTX_ACCESS_KEY_SECRET=your_access_key_secret
Send a text message to a single recipient.
const { UniClient } = require('uni-sdk')
const client = new UniClient()
client.messages.send({
to: '+1206880xxxx', // in E.164 format
text: 'Your verification code is 2048.'
})
.then(ret => {
console.log('Result:', ret)
})
.catch(e => {
console.error(e)
})
or use async/await keyword:
try {
const ret = await client.messages.send({
// ...
})
console.log('Result:', ret)
} catch (e) {
console.error(e)
}
Send a one-time passcode (OTP) to a recipient. The following example will automatically generate a verification code.
const { UniClient } = require('uni-sdk')
const client = new UniClient()
client.otp.send({
to: '+1206880xxxx'
})
.then(ret => {
console.log('Result:', ret)
})
Verify the one-time passcode (OTP) that a user provided. The following example will check whether the user-provided verification code is correct.
const { UniClient } = require('uni-sdk')
const client = new UniClient()
client.otp.verify({
to: '+1206880xxxx',
code: '123456' // the code user provided
})
.then(ret => {
console.log('Valid:', ret.valid)
})
To find Unimatrix SDKs in other programming languages, check out the list below:
This library is released under the MIT License.
FAQs
The official Unimatrix SDK for Node.js.
The npm package uni-sdk receives a total of 271 weekly downloads. As such, uni-sdk popularity was classified as not popular.
We found that uni-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.