If you use other development languages, please refer to the development documentation
"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.
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.
-
General message(primary)
-
Success message(success)
-
Information messages(info)
-
Warning message(warning)
-
Fail message(fail)
iOS Store
- Python 3.0+
pip install custom-notifications
- 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)
- 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