pushbullet.pushNote() 函数
pushbullet.pushNote() 将类型为“note”的推送通知发送到Pushbullet API。
函数类型签名
(text: A, title: B, ?token: C, ?url: string) => int
有关更多信息,请参见 Function type signatures。
参数
网址
PushBullet 端点的 URL。默认是 "https://api.pushbullet.com/v2/pushes"。
令牌
API令牌字符串。默认为: ""。
标题
(必填) 通知的标题。
文本
(必填) 在通知中显示的文本。
示例
向Pushbullet发送推送通知
import "pushbullet"
pushbullet.pushNote(
token: "mY5up3Rs3Cre7T0k3n",
data: {"type": "link", "title": "Example title", "text": "Example note text"},
)