Wrapper for Whatools Rest API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Change whathor gem version Apr 9, 2015
spec [Initial Commit] Apr 9, 2015
.gitignore [Initial Commit] Apr 9, 2015
.rspec [Initial Commit] Apr 9, 2015
Gemfile [Initial Commit] Apr 9, 2015
LICENSE.txt [Initial Commit] Apr 9, 2015
README.md update homepage from gem specification and README content Apr 9, 2015
Rakefile [Initial Commit] Apr 9, 2015
whathor.gemspec Update gemspec decription Apr 9, 2015



Whathor allows you in an easy way to send Whatsapp messages directly from your ruby app by acting as a wrapper for Whatools Rest API. To be able to use this gem you have to register and get a token key from https://wha.tools.


Add this line to your application's Gemfile:

gem 'whathor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install whathor


There are only three easy steps for this to work:

  # 1. Before any message is sent for the first time, you have to subscribe against Whatools Rest API
  # by passing the token.
  Whathor.subscribe "MY_WHATOOLS_TOKEN"

  # 2. Sends a message to another whatsapp user by specifying the phone number prefixed with country code
  # and body of the message.
  Whathor.message to: '573001231231231', body: "This is cool! :)" # 57 = country code, 3001231231231 = Phone number

  # 3. When you are done sending messages. Unsubscribe from Whatools so that further notifications and
  # messages are not lost.

You can read more about Whatools API specification in https://api.wha.tools/v0