Skip to content

renjunok/customize-notifications-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Customize Notifications Python SDK

SDK

Golang Python

Development Document

If you use other development languages, please refer to the development documentation

Development Document

Description

"My Notice" is an application that allows users to send custom messages to themselves. Developers, operation and maintenance personnel or startup teams can send custom push messages to mobile phones.

customize notification app home view

customize notification app message detail view

Scenes to be used

After you integrate and call the interface in the code, a customized message will be pushed to this application. Common usage scenarios are such as:

  • An error occurred during program operation.
  • Customer order processing.
  • Server CPU usage is too high.
  • Concerned content updates.

Message type

  1. primary General message(primary)
  2. success Success message(success)
  3. info Information messages(info)
  4. warning Warning message(warning)
  5. fail Fail message(fail)

Application

iOS Store

Run environment

  • Python 3.0+

Install

  • pip install custom-notifications

Use method

  • iOS users install application in app store
  • After opening the app, click the menu in the upper left corner to get the configuration information, ID and Secret
  • Execute the following code in the notification message you need to customize
    try:
        m = Message(title="test title", msg_type=0, content="test content", group="test group")
        m.send_message("your_id", "your_secret")
    except Exception as e:
        print(e)

Precautions

  • title, content, msgType fields are required, group field optional
  • The maximum number of title characters is 100, the maximum content is 4000, and the maximum group is 20
  • The msgType types are 0 primary, 1 success, 2 info, 3 warning, 4 fail
  • The api call rate is at most three times within 1 minute, and requests beyond the call will not be processed

About

customize-notifications-python-sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages