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')
Metadata
Release files for pyhcm 1.0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhcm-1.0.6.4.tar.gz | 2.6 kB | Details |
Release files / pyhcm-1.0.6.4.tar.gz
| Download URL | pyhcm-1.0.6.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81a642a76f21864876e56b72c09f22b541d9832748a8ae2c7e47ded2016ded88
|
|
BLAKE2b-256 checksum How to use checksums |
ba68bcaf31cdf2689988b98baa80c2a898ef281b1da249859e5ac15ccffb2df9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|