dadapush / dadapush-php-client
DaDaPush: Real-time Notifications AppSend real-time notifications through our API without coding and maintaining your own app for iOS or Android devices.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dadapush/dadapush-php-client
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^7.4
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2025-12-29 03:06:08 UTC
README
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 PHP package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen For more information, please visit https://www.dadapush.com
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:
{
"require": {
"dadapush/dadapush-php-client": "1.0.0"
}
}
or use git repo
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/dadapush/dadapush-php-client.git"
}
],
"require": {
"dadapush/dadapush-php-client": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
require_once('/path/to/DaDaPushClient/vendor/autoload.php');
Tests
To run the unit tests:
composer install ./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new DaDaPushClient\Api\DaDaPushMessageApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $body = new \DaDaPushClient\Model\MessagePushRequest(); // \DaDaPushClient\Model\MessagePushRequest | body $x_channel_token = 'x_channel_token_example'; // string | see: https://www.dadapush.com/channel/list try { $result = $apiInstance->createMessage($body, $x_channel_token); print_r($result); } catch (Exception $e) { echo 'Exception when calling DaDaPushMessageApi->createMessage: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://www.dadapush.com
| 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
- Action
- MessageObject
- MessagePushRequest
- MessagePushResponse
- PageResponseOfMessageObject
- Result
- ResultOfMessageObject
- ResultOfMessagePushResponse
- ResultOfPageResponseOfMessageObject