[Eolinker example] Push API change notification to Dingding robot through Webhook

This week’s question is about Open API. When you need to connect to other programs through Eolinker Webhook, the general process is:

  1. Obtain the workspace ID and compare it with the known workspace ID to determine whether it is an official request from Eolinker, if not, ignore this request;
  2. Determine the triggered product according to the hook_product field of the callback data;
  3. Judge the triggered event according to the hook_event field of the callback data;
  4. Determine the specific operation triggered according to the hook_operation field of the callback data;
  5. Obtain the content in the content field according to the product, event, and operation, and perform subsequent processing;
  6. Return the string ok to Eolinker Webhook to end the program.

For the DingTalk robot, you can add a callback address in the workspace settings-webhook, first receive the Eolinker information in the callback script, and then pass the parameters through the script call, get and judge the fields in the red box in the figure below, and identify To modify the operation, you can finally call the Dingding robot's Webhook address to send information.

This week’s questions are about to be sorted out, everyone is welcome to comment and communicate~ Use address: www.eolinker.com

Guess you like

Origin blog.csdn.net/qq_40857096/article/details/112538512