
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
WaCloudApi is a ruby gem that provides a convinient way to interact with Whatsapp Cloud API allowing developer to integrate Whatsapp messaging capabilities into Ruby / Rails applications.
Install the gem and add to the application's Gemfile by executing:
$ bundle add wa_cloud_api
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install wa_cloud_api
Before using the gem, you need to configure it with your WhatsApp Cloud API credentials. You can do this by using the following code:
require 'wa_cloud_api'
WaCloudApi.configure do |config|
config.phone_number_id = 'your_phone_number_id'
config.token = 'your_token'
end
To send a text message to a phone number.
Parameters
to
: (Required) The phone number of the recipient. It should be in international formatbody
: (Required) The actual text message you want to sendpreview_url
: (Optional) A boolean parameter whether a URL preview should be generated for the links in the message. By default it is set to falseWaCloudApi::Message::Text.new(
to: 'recipient_phone_number ',
body: 'This is a test message',
).deliver
To send a reaction to a message
Parameters
to
: (Required) The phone number of the recipient. It should be in international formatmessage_id
: (required) The message id you want to reactemoji
: (required) The emoji you want to reactWaCloudApi::Message::Reaction.new(
to: 'recipient_phone_number',
message_id: 'whatsapp_message_id',
emoji: 'emoji'
).deliver
To send a location to a phone number
Parameters
to
: (Required) The phone number of the recipient. It should be in international formatlongitude
: (Required) Longitude of the locationlatitude
: (Required) Latitude of the locationname
: (Optional) Name of the locationaddress
: (Optional) Address of the locationWaCloudApi::Message::Location.new(
to: 'recipient_phone_number',
longitude: 'longitude',
latitude: 'latitude',
name: 'location_name',
address: 'location_address'
).deliver
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/rvs-teja/wa_cloud_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
FAQs
Unknown package
We found that wa_cloud_api 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 new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.