Skip to main content

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.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file pyhcm-1.0.6.3.tar.gz.

File metadata

  • Download URL: pyhcm-1.0.6.3.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

Hashes for pyhcm-1.0.6.3.tar.gz
Algorithm Hash digest
SHA256 50e6c3cab788311b1038cfcfce607c238795a6adf58e7425dc57eaa6ed9de868
MD5 d2a17f805977502d4f1800e934d4ae19
BLAKE2b-256 3c044cd9c66918ce8cf625e2de0c3379a375fac126b51b40a6fc65ce42dd000a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page