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
Python 2.7 and 3.4+
install from pypi
pip install dadapush-clientpip 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_clientPlease 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)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 |