Skip to content
DaDaPush Client For Ruby
Ruby Shell
Branch: master
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.


DaDaPushClient - the Ruby gem for the DaDaPush Public API

DaDaPush: Real-time Notifications App

Send real-time notifications through our API without coding and maintaining your own app for iOS or Android devices.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit


Build a gem

To build the Ruby code into a gem:

gem build dadapush_client.gemspec

Then either install the gem locally:

gem install ./dadapush_client-1.0.0.gem

(for development, run gem install --dev ./dadapush_client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'dadapush_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository:, then add the following in the Gemfile:

gem 'dadapush_client', :git => ''

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'dadapush_client'

api_instance =
body = # MessagePushRequest | body
opts = {
  x_channel_token: 'x_channel_token_example' # String | see:

  #push Message to a Channel
  result = api_instance.create_message(body, opts)
  p result
rescue DaDaPushClient::ApiError => e
  puts "Exception when calling DaDaPushMessageApi->create_message: #{e}"

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
DaDaPushClient::DaDaPushMessageApi create_message POST /api/v1/message push Message to a Channel
DaDaPushClient::DaDaPushMessageApi delete_message DELETE /api/v1/message/{messageId} delete a Channel Message
DaDaPushClient::DaDaPushMessageApi get_message GET /api/v1/message/{messageId} get a Channel Message
DaDaPushClient::DaDaPushMessageApi get_messages GET /api/v1/messages get Message List

Documentation for Models

You can’t perform that action at this time.