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

dadapush_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dadapush_client

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

dadapush_client

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 https://www.dadapush.com

Installation

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: https://github.com/dadapush/dadapush-ruby-client, then add the following in the Gemfile:

gem 'dadapush_client', :git => 'https://github.com/dadapush/dadapush-ruby-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 = DaDaPushClient::DaDaPushMessageApi.new
body = DaDaPushClient::MessagePushRequest.new # MessagePushRequest | body
opts = {
  x_channel_token: 'x_channel_token_example' # String | see: https://www.dadapush.com/channel/list
}

begin
  #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}"
end

Documentation for API Endpoints

All URIs are relative to https://www.dadapush.com

ClassMethodHTTP requestDescription
DaDaPushClient::DaDaPushMessageApicreate_messagePOST /api/v1/messagepush Message to a Channel
DaDaPushClient::DaDaPushMessageApidelete_messageDELETE /api/v1/message/{messageId}delete a Channel Message
DaDaPushClient::DaDaPushMessageApiget_messageGET /api/v1/message/{messageId}get a Channel Message
DaDaPushClient::DaDaPushMessageApiget_messagesGET /api/v1/messagesget Message List

Documentation for Models

FAQs

Package last updated on 29 Jul 2019

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