Wrapper of huawei cloud messaging (Push Kit) for sending push notification using python.
Project description
Python Huawei Cloud Messaging
Wrapper of huawei cloud messaging (Push Kit) for sending push notification using python.
Home page
https://pypi.org/project/pyhcm/
Install
pip install pyhcm
Example
Send notification to topic
CLIENT_ID = "00000000"
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"
HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_topic_subscribers('test_topic', 'test title', 'test body')
Send notification to user
CLIENT_ID = "00000000"
CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000"
HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_single_device('token_xyz', 'test title', 'test body')
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
pyhcm-1.0.6.4.tar.gz
(2.6 kB
view details)
File details
Details for the file pyhcm-1.0.6.4.tar.gz
.
File metadata
- Download URL: pyhcm-1.0.6.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81a642a76f21864876e56b72c09f22b541d9832748a8ae2c7e47ded2016ded88 |
|
MD5 | 38a6b9adb103ddd948e20b9dd59e460a |
|
BLAKE2b-256 | ba68bcaf31cdf2689988b98baa80c2a898ef281b1da249859e5ac15ccffb2df9 |