Skip to content
DaDaPush Client For Java
Java 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.


DaDaPush Public API

  • API version: v1
    • Build date: 2019-07-10T21:57:17.209285+08:00[Asia/Shanghai]

DaDaPush: Real-time Notifications App

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

For more information, please visit

Automatically generated by the OpenAPI Generator


Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle


Maven users

Add this dependency to your project's POM:


Gradle users

Add this dependency to your project's build file:

compile "com.dadapush.client:dadapush-client:1.0.0"


At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/dadapush-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

// Import classes:
import com.dadapush.client.ApiClient;
import com.dadapush.client.ApiException;
import com.dadapush.client.Configuration;
import com.dadapush.client.models.*;
import com.dadapush.client.api.DaDaPushMessageApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();

    DaDaPushMessageApi apiInstance = new DaDaPushMessageApi(defaultClient);
    MessagePushRequest body = new MessagePushRequest(); // MessagePushRequest | body
    String xChannelToken = "xChannelToken_example"; // String | see:
    try {
      ResultOfMessagePushResponse result = apiInstance.createMessage(body, xChannelToken);
    } catch (ApiException e) {
      System.err.println("Exception when calling DaDaPushMessageApi#createMessage");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
DaDaPushMessageApi createMessage POST /api/v1/message push Message to a Channel
DaDaPushMessageApi deleteMessage DELETE /api/v1/message/{messageId} delete a Channel Message
DaDaPushMessageApi getMessage GET /api/v1/message/{messageId} get a Channel Message
DaDaPushMessageApi getMessages GET /api/v1/messages get Message List

Documentation for Models


It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.


You can’t perform that action at this time.