PushBullet API
目前為
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/418543/879740/PushBullet.js
alexschneider/pushbullet-js: Client side javascript pushbullet
const objPB = window.PushBullet || {};
objPB.APIKey = "o.XXXXXXXXXXXXXXXXXXXX";
objPB.isGM = true;
objPB.push("link", null, null, {title: "<your title here>", url: "<your url here>", body: "<your optional body here>"}, function(err, res) {
if(err) {
throw err;
} else {
console.log(res);
}
});