Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ongair

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ongair

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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


  # configure your API token
  Ongair.configure do |c|
    c.token = ''
  end

  # receiving messages:
  message = Ongair::Message.new(params) # simply initialize a new message with the params from the ongair webhook
  message.type.image?
  message.text
  message.image
  # see lib/ongair/message.rb for details

  # sending messages (currently text and images are supported)
  message = Ongair::Message.new(phone_number: 'number', text: 'hello world') # initialize a new message with the params described in the ongair API
  message.deliver! # or message.deliver_to('4912345678')

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.

FAQs

Package last updated on 14 Oct 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc