pushbullet.pushNote() 函数
pushbullet.pushNote()
向 Pushbullet API 发送类型为“note”的推送通知。
函数类型签名
(text: A, title: B, ?token: C, ?url: string) => int
有关更多信息,请参阅函数类型签名。
参数
url
PushBullet 端点的 URL。默认值为 "https://api.pushbullet.com/v2/pushes"
。
token
API 令牌字符串。默认为:""
。
title
(必需) 通知的标题。
text
(必需) 在通知中显示的文本。
示例
向 Pushbullet 发送推送通知便笺
import "pushbullet"
pushbullet.pushNote(
token: "mY5up3Rs3Cre7T0k3n",
data: {"type": "link", "title": "Example title", "text": "Example note text"},
)
此页是否对您有帮助?
感谢您的反馈!