![]() Private static Logger logger = LoggerFactory.getLogger(SendHttps. * the tool class for sending http requests Public static void sendDDMessage(String msg)", response) Description (optional): You may add additional details about your notification in this field if desired. Complete the following fields: Title : Create a unique title for your notification. Select the Create notification button at the top right of the menu. Public static final String DING_DING_TOKEN = Navigate to the Alerts tab and select Notifications. Here is the value of the Webhook just obtained Note Note:This custom keyword must be entered, and when sending a message in the code later, this keyword must be included in the content body of the message, otherwise DingTalk will return a message sending failureĪfter completion, the following screen will appear, click Copy, copy the generated Webhook, and finally click FinishĪfter completion, you will enter the following pageĪt this point, the configuration of the DingTalk group is completeĪfter the DingTalk group is configured and the value of the Webhook is obtained, you can call the DingTalk message push in the java code Select the last customization to access the custom service through WebhookĮnter the robot name, and enter a custom keyword in the security settings Settings button in the upper right corner of the point groupĬlick the “+” plus sign on the far right to add the robot Enterprises that require additional security. It is also one of the first Chinese apps to have obtained the ISO/IEC 27001:2013 standard. It features end-to-end 256-bit AES encryption over SSL/TLS connections. Do something like that (not tested) ComponentName componentName new ComponentName ( applicationContext, FCMService.class) applicationContext. Create a DingTalk group to receive notificationsĪs shown in the figure below, create a DingTalk group to receive notificationsĮnter the group name, select group members on the right, and finally click Create in the lower right corner As a Chinese app targeted at enterprises, Alibaba is eager to assure users of the security of the DingTalk platform. To keep receiving, when the app is killed, you need to mark your Firebase Service class to not get killed with your main app. Today, let’s talk about using the Dingding robot Webhook in the Java project to push alarm notifications to the Dingding group 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |