A Python client for the Bluemix/IBM push notifications service
Project description
Cloud-Push-Notifications Python Client
This repository contains a simple Python client for the Bluemix/IBM push notification service
Installation
pip install cloud-push-client
Getting Started
Log into IBM/Bluemix cloud and retrieve api_key, app_id and client_secret from your push service
import cloudpush.Client as cp
push_client = cp.Client("api_key", "app_id", "client_secret")
Methods
devices
register_device(token, platform, device_id=None)
delete_device(device_id)
get_device(device_id=None,token=None)
get_devices()
get_device_stats()
topics
register_topic(name,description=None)
delete_topic(name)
subscriptions
subscribe( topic, device_id)
unsubscribe(self, topic, device_id)
get_subscriptions( topic, device_id=None)
push messages
get_push_stats()
get_messages(offset=0)
get_message(message_id)
get_message_status(message_id)
get_message_delivery_status(message_id,device_id="")
send_message(alert, url=None,
platforms=["A", "G"],
payload="",
device_ids=None,
topics=None,
badge=1,
ttl=3600,
type='DEFAULT',
title=None,
subtitle=None,
validate=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloud_push_client-1.0.3.tar.gz.
File metadata
- Download URL: cloud_push_client-1.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7a11591b897801e561692443399fbcf8b6dccde03c3e7d3d6f2d75ec79083e
|
|
| MD5 |
60d8e907c0c554f79858ab36bf378098
|
|
| BLAKE2b-256 |
ec8cb97f5e627666d644b036837f9a87e15d57b185a9e265b135d39c6c2106d4
|
File details
Details for the file cloud_push_client-1.0.3-py3-none-any.whl.
File metadata
- Download URL: cloud_push_client-1.0.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21f470fc54983687795869de9c0e0b4928469cd9b13b6945b3e3c1e7a91d0ec8
|
|
| MD5 |
96ec3b40ab497faf1b0d8e754d742273
|
|
| BLAKE2b-256 |
36f3e55daec3e56249b9d3f5ef47dd2efb644e2451ce89168e28e37e58148593
|