{"id":19001439,"url":"https://github.com/bumi/ongair","last_synced_at":"2025-04-22T17:46:56.296Z","repository":{"id":56886730,"uuid":"44185577","full_name":"bumi/ongair","owner":"bumi","description":"a ruby wrapper for the ongair API","archived":false,"fork":false,"pushed_at":"2015-10-16T18:10:24.000Z","size":148,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T08:59:20.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bumi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-13T15:24:20.000Z","updated_at":"2017-08-25T13:04:42.000Z","dependencies_parsed_at":"2022-08-21T00:20:31.934Z","dependency_job_id":null,"html_url":"https://github.com/bumi/ongair","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fongair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fongair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fongair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fongair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/ongair/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250290150,"owners_count":21406127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T18:11:10.632Z","updated_at":"2025-04-22T17:46:56.251Z","avatar_url":"https://github.com/bumi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ongair API wrapper\n\nA ruby wrapper for the [ongair.im](http://ongair.im) API that allows you to send and receive chat messages.  \nCurrently ongair supports whatsapp and wechat. \n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ongair'\n```\n\nOr install it yourself as:\n\n    $ gem install ongair\n\n## Usage\n\n```ruby\n\n  # configure your API token\n  Ongair.configure do |c|\n    c.token = ''\n  end\n\n  # receiving messages:\n  message = Ongair::Message.new(params) # simply initialize a new message with the params from the ongair webhook\n  message.type.image?\n  message.text\n  message.image\n  # see lib/ongair/message.rb for details\n\n  # sending messages (currently text and images are supported)\n  message = Ongair::Message.new(phone_number: 'number', text: 'hello world') # initialize a new message with the params described in the ongair API\n  message.deliver! # or message.deliver_to('4912345678')\n\n```\n## Project Status: \n\n**experimental.**\nIt is simple and seems to work fine. But it is currently still lacking essential features and specs.\n\n\n## ToDo:\n\n* specs: please not this gem is currently experimental\n* support for more ongair message endpoints\n* support for handling contacts\n* support for groups\n* sending broadcasts\n* support for message receipts \n\nWant to help? :green_heart:\n\n------------\n\nBuilt with love by [@njirap](https://twitter.com/njirap) and [@bumi](https://twitter.com/bumi) in Nairobi and released under the MIT-Licence.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fongair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Fongair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fongair/lists"}