Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The Unimatrix Ruby SDK provides convenient access to integrate communication capabilities into your Ruby 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 Ruby is to use the gem package manager, which is available on RubyGems.
Run the following command to add uni-sdk
as a dependency to your project:
gem install uni-sdk
If you are installing via Bundler, add this line to your application's Gemfile:
gem 'uni-sdk'
The following example shows how to use the Unimatrix Ruby SDK to interact with Unimatrix services.
require 'uni-sdk'
client = Uni::Client.new('your access key id', '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.
require 'uni-sdk'
client = Uni::Client.new('your access key id', 'your access key secret')
begin
resp = client.messages.send({
to: '+1206880xxxx', # in E.164 format
text: 'Your verification code is 2048.'
})
puts resp.data
rescue Uni::UniError => e
puts 'Exception: ' + e.message
end
Send a one-time passcode (OTP) to a recipient. The following example will automatically generate a verification code.
require 'uni-sdk'
client = Uni::Client.new()
resp = client.otp.send({
to: '+1206880xxxx'
})
puts resp.data
Verify the one-time passcode (OTP) that a user provided. The following example will check whether the user-provided verification code is correct.
require 'uni-sdk'
client = Uni::Client.new()
resp = client.otp.verify({
to: '+1206880xxxx',
code: '123456' # the code user provided
})
puts resp.valid
To find Unimatrix SDKs in other programming languages, check out the list below:
This library is released under the MIT License.
FAQs
Unknown package
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 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.