Skip to main content

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.

Files for cloud-push-client, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size cloud_push_client-1.0.3-py3-none-any.whl (17.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cloud_push_client-1.0.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page