nezhahq.github.io/assets/en_US_guide_notifications.md.a964b3ef.lean.js

2 lines
3.1 KiB
JavaScript

import{_ as i,c as n,o as a,a as o,b as e,d as t}from"./app.31af427a.js";const y='{"title":"Flexible notification methods","description":"","frontmatter":{},"headers":[{"level":2,"title":"Flexible notification methods","slug":"flexible-notification-methods"},{"level":2,"title":"Description of notification rules","slug":"description-of-notification-rules"},{"level":3,"title":"Basic Rules","slug":"basic-rules"},{"level":3,"title":"Special: Any-cycle transfer notification","slug":"special-any-cycle-transfer-notification"},{"level":2,"title":"Description of mode of triggering notification","slug":"description-of-mode-of-triggering-notification"},{"level":2,"title":"Set the task to be executed when notification","slug":"set-the-task-to-be-executed-when-notification"}],"relativePath":"en_US/guide/notifications.md","lastUpdated":1666600441000}',l={},r=o("",6),c=e("ul",null,[e("li",null,[e("p",null,"Bark Example -Name: Bark -URL composition: the first part is the key, followed by three matches/: key/: body or/: key/: title/: body or/: key/: category/: title/: body -Request method: GET -Request Type: Default -Body: null"),e("p",null,"-Name: Bark -URL composition:/push -Request method: post -Request type: form"),e("ul",null,[e("li",{"title:#SERVER.NAME#,device_key:xxxxxxxxx,body:#NEZHA#,icon:https:xxxxxxxxnz.png":""},"Body:")])]),e("li",null,[e("p",null,[t("Telegram Example, contributed by "),e("a",{href:"https://github.com/haitau",target:"_blank",rel:"noopener noreferrer"},"@haitau")]),e("ul",null,[e("li",null,"Name\uFF1ATelegram Robot message notification"),e("li",null,[t("URL\uFF1A"),e("a",{href:"https://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NEZHA#",target:"_blank",rel:"noopener noreferrer"},"https://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NEZHA#")]),e("li",null,"Request method: GET"),e("li",null,"Request type: default"),e("li",null,"Body: null"),e("li",null,[t("Notes for this method\uFF1AThe XXXXXX in botXXXXXX is the token provided when you follow the official @Botfather in Telegram and enter /newbot to create a new bot. (In the line after "),e("em",null,"Use this token to access the HTTP API"),t("). The 'bot' are essential. After creating a bot, you need to talk to the BOT in Telegram (send a random message) before you can send a message by using API. YYYYYY is Telegram user's ID, you can get it by talking to the bot @userinfobot.")])])]),e("li",null,[e("p",null,[t("Email notification example - Outlook, contributed by "),e("a",{href:"https://github.com/MIKU-N",target:"_blank",rel:"noopener noreferrer"},"@MIKU_N ")]),e("ul",null,[e("li",null,"Name: MS Mail Notification"),e("li",null,[t("URL\uFF1A"),e("a",{href:"https://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail",target:"_blank",rel:"noopener noreferrer"},"https://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail")]),e("li",null,"Request method: POST"),e("li",null,"Request type: JSON"),e("li",null,[t("Header: "),e("code",null,'{"Content-type":"application/json", "Authorization":"Bearer {Token}"}')]),e("li",null,"Body:")])])],-1),s=o("",22),u=[r,c,s];function d(h,f,p,q,m,g){return a(),n("div",null,u)}var _=i(l,[["render",d]]);export{y as __pageData,_ as default};