This
Python sample code encapsulates APIs of the HUAWEI Push Kit server.
The following table describes packages of Python sample code.
-------------------------------------------------------------------------------------
Package | Description.
---------- | ------------------------------------------------------------------
huawei_pushkit | Package where APIs of the HUAWEI Push Kit server are encapsulated.
-------------------------------------------------------------------------------------
pip install huawei-pushkit
Currently support Python 2.7 / 3.0.
The following table describes parameters of the initialize_app method.
--------------------------------------------------------------------------------------------
Parameter | Description
------------- | -------------------------------------------------------------------------
appid | App ID, which is obtained from app information.
------------- | -------------------------------------------------------------------------
appsecret | Secret access key of an app, which is obtained from app information.
------------- | -------------------------------------------------------------------------
token_server | URL for the Huawei OAuth 2.0 service to obtain a token,
please refer to Generating an App-Level Access Token.
------------- | --------------------------------------------------------------------------
push_open_url | URL for accessing HUAWEI Push Kit, please refer to Sending Messages.
---------------------------------------------------------------------------------------------
pushkit Python sample is licensed under the [Apache License, [version 2.0]
(https://www.apache.org/licenses/LICENSE-2.0).