Ongair API wrapper
A ruby wrapper for the ongair.im API that allows you to send and receive chat messages.
Currently ongair supports whatsapp and wechat.
Installation
Add this line to your application's Gemfile:
gem 'ongair'
Or install it yourself as:
$ gem install ongair
Usage
Ongair.configure do |c|
c.token = ''
end
message = Ongair::Message.new(params)
message.type.image?
message.text
message.image
message = Ongair::Message.new(phone_number: 'number', text: 'hello world')
message.deliver!
ToDo:
- support for more ongair message endpoints
- support for handling contacts
- support for groups
- sending broadcasts
- support for message receipts
Want to help? :green_heart:
Built with love by @njirap and @bumi in Nairobi and released under the MIT-Licence.