Skip to content
DaDaPush Client For Python
Python 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
dadapush_client
docs
test
.gitignore
.openapi-generator-ignore
README.md
git_push.sh
requirements.txt
setup.py
test-requirements.txt
tox.ini

README.md

dadapush-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 Python package is automatically generated by the OpenAPI Generator project:

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

install from pypi

pip install dadapush-client

install directly from Github

pip install git+https://github.com/dadapush/dadapush-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/dadapush/dadapush-python-client.git)

Then import the package:

import dadapush_client 

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import dadapush_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import dadapush_client
from dadapush_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = dadapush_client.DaDaPushMessageApi(dadapush_client.ApiClient(configuration))
body = dadapush_client.MessagePushRequest() # MessagePushRequest | body
x_channel_token = 'x_channel_token_example' # str | see: https://www.dadapush.com/channel/list (optional)

try:
    # push Message to a Channel
    api_response = api_instance.create_message(body, x_channel_token=x_channel_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DaDaPushMessageApi->create_message: %s\n" % e)

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

Author

contacts@dadapush.com

You can’t perform that action at this time.