|
| 1 | +Metadata-Version: 2.1 |
| 2 | +Name: pyhcm |
| 3 | +Version: 1.0.6.3 |
| 4 | +Summary: Wrapper of huawei cloud messaging (Push Kit) for sending push notification using python. |
| 5 | +Home-page: https://github.com/umartinez22 |
| 6 | +Author: Ulises Martinez Adon |
| 7 | +Author-email: umartinezadon@outlook.com |
| 8 | +License: MIT |
| 9 | +Download-URL: https://github.com/umartinez22/python-huawei-cloud-messaging/archive/v_1.0.6.3.tar.gz |
| 10 | +Description: # Python Huawei Cloud Messaging |
| 11 | + |
| 12 | + Wrapper of huawei cloud messaging [(Push Kit)](https://developer.huawei.com/consumer/en/hms/huawei-pushkit/) for sending push notification using python. |
| 13 | + |
| 14 | + ## Home page |
| 15 | + |
| 16 | + https://pypi.org/project/pyhcm/ |
| 17 | + |
| 18 | + ## Install |
| 19 | + ```pip install pyhcm``` |
| 20 | + |
| 21 | + ## Example |
| 22 | + |
| 23 | + ### Send notification to topic |
| 24 | + ``` |
| 25 | + CLIENT_ID = "00000000" |
| 26 | + CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000" |
| 27 | + |
| 28 | + HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_topic_subscribers('test_topic', 'test title', 'test body') |
| 29 | + ``` |
| 30 | + |
| 31 | + ### Send notification to user |
| 32 | + |
| 33 | + ``` |
| 34 | + CLIENT_ID = "00000000" |
| 35 | + CLIENT_SECRET = "0000000000000000000000000000000000000000000000000000000000000000" |
| 36 | + |
| 37 | + HCMNotification(CLIENT_ID, CLIENT_SECRET).notify_single_device('token_xyz', 'test title', 'test body') |
| 38 | + ``` |
| 39 | +Keywords: Huawei,cloud,messaging,notification |
| 40 | +Platform: UNKNOWN |
| 41 | +Classifier: Development Status :: 5 - Production/Stable |
| 42 | +Classifier: Intended Audience :: Developers |
| 43 | +Classifier: Topic :: Software Development :: Build Tools |
| 44 | +Classifier: License :: OSI Approved :: MIT License |
| 45 | +Classifier: Programming Language :: Python |
| 46 | +Description-Content-Type: text/markdown |
0 commit comments