
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Omnichannel - the Ruby gem for the Omnichannel API
To build the Ruby code into a gem:
gem build omnichannel.gemspec
Then either install the gem locally:
gem install ./omnichannel-1.0.0.gem
(for development, run gem install --dev ./omnichannel-1.0.0.gem
to install the development dependencies)
Finally add this to the Gemfile:
gem 'omnichannel', '~> 1.0.0'
gem 'omnichannel', :git => 'https://github.com/messente/messente-omnichannel-ruby.git'
Please follow the installation procedure and then run the following code:
require 'omnichannel'
# setup authorization
Omnichannel.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = '<MESSENTE_API_USERNAME>'
config.password = '<MESSENTE_API_PASSWORD>'
end
api_instance = Omnichannel::OmnimessageApi.new
omnimessage = Omnichannel::Omnimessage.new
omnimessage.to = '<phone number in e.164 format>'
omnimessage.messages = [
Omnichannel::SMS.new(
{
:sender => "<sender name or phone number in e.164 format>",
:text => "Hello SMS!"
}
),
Omnichannel::WhatsApp.new(
{
:sender => "<sender name or phone number in e.164 format>",
:text => Omnichannel::WhatsAppText.new(
{
:body => "Hello from WhatsApp!",
:preview_url => false
}
)
}
),
Omnichannel::Viber.new(
{
:sender => "<sender name or phone number in e.164 format>",
:text => "Hello from Viber!"
}
)
]
begin
result = api_instance.send_omnimessage(omnimessage)
rescue Omnichannel::ApiError => e
puts "Exception when calling OmnimessageApi->send_omnimessage: #{e}"
puts e.response_body
end
All URIs are relative to https://api.messente.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
Omnichannel::DeliveryReportApi | retrieve_delivery_report | GET /omnimessage/{omnimessage_id}/status | Retrieves the delivery report for the Omnimessage |
Omnichannel::OmnimessageApi | cancel_scheduled_message | DELETE /omnimessage/{omnimessage_id} | Cancels a scheduled Omnimessage |
Omnichannel::OmnimessageApi | send_omnimessage | POST /omnimessage | Sends an Omnimessage |
FAQs
Unknown package
We found that omnichannel 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.