Skip to content
DaDaPush Client For Perl
Perl Perl 6 Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.openapi-generator
bin
docs
lib/DaDaPushClient
t
.gitignore
.openapi-generator-ignore
README.md
git_push.sh

README.md

NAME

DaDaPushClient::Role - a Moose role 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.

VERSION

Automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PerlClientCodegen For more information, please visit https://www.dadapush.com

LOAD THE MODULES

To load the API packages:

use DaDaPushClient::DaDaPushMessageApi;

To load the models:

use DaDaPushClient::Object::Action;
use DaDaPushClient::Object::MessageObject;
use DaDaPushClient::Object::MessagePushRequest;
use DaDaPushClient::Object::MessagePushResponse;
use DaDaPushClient::Object::PageResponseOfMessageObject;
use DaDaPushClient::Object::Result;
use DaDaPushClient::Object::ResultOfMessageObject;
use DaDaPushClient::Object::ResultOfMessagePushResponse;
use DaDaPushClient::Object::ResultOfPageResponseOfMessageObject;

GETTING STARTED

Put the Perl SDK under the 'lib' folder in your project directory, then run the following

#!/usr/bin/perl
use lib 'lib';
use strict;
use warnings;
# load the API package
use DaDaPushClient::DaDaPushMessageApi;

# load the models
use DaDaPushClient::Object::Action;
use DaDaPushClient::Object::MessageObject;
use DaDaPushClient::Object::MessagePushRequest;
use DaDaPushClient::Object::MessagePushResponse;
use DaDaPushClient::Object::PageResponseOfMessageObject;
use DaDaPushClient::Object::Result;
use DaDaPushClient::Object::ResultOfMessageObject;
use DaDaPushClient::Object::ResultOfMessagePushResponse;
use DaDaPushClient::Object::ResultOfPageResponseOfMessageObject;

# for displaying the API response data
use Data::Dumper;
use DaDaPushClient::;

my $api_instance = DaDaPushClient::->new(
);

my $body = DaDaPushClient::Object::MessagePushRequest->new(); # MessagePushRequest | body
my $x_channel_token = "x_channel_token_example"; # string | see: https://www.dadapush.com/channel/list

eval {
    my $result = $api_instance->create_message(body => $body, x_channel_token => $x_channel_token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DaDaPushMessageApi->create_message: $@\n";
}

DOCUMENTATION FOR API ENDPOINTS

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

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

DOCUMENTATION FOR MODELS

You can’t perform that action at this time.