Skip to content

dadapush/dadapush-groovy-client

Repository files navigation

DaDaPush Groovy Client

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 Groovy package, using the http-builder-ng library, is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.0.0
  • Build date: 2019-07-10T22:05:40.468806+08:00[Asia/Shanghai]
  • Build package: org.openapitools.codegen.languages.GroovyClientCodegen For more information, please visit https://www.dadapush.com

Requirements

  • Groovy 2.5.7
  • Gradle 4.9

Build

First, create the gradle wrapper script:

gradle wrapper

Then, run:

./gradlew check assemble

Getting Started

def apiInstance = new DaDaPushMessageApi()
def body = new MessagePushRequest() // MessagePushRequest | body
def xChannelToken = "xChannelToken_example" // String | see: https://www.dadapush.com/channel/list

apiInstance.createMessage(body, xChannelToken)
    {
    // on success
    def result = (ResultOfMessagePushResponse)it
    println result
    
}
    {
    // on failure
    statusCode, message ->
        println "${statusCode} ${message}"
};