JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://alexschneider.github.io/pushbullet-js/pushbullet.min.js"></script>
<pre><code id="result"></code></pre>
JavaScript
PushBullet.APIKey = "Your API Key here";
var devID = "Your Device ID here";
var res = PushBullet.push("note", devID, null, {title: "Hi", body: "pushbullet.js is cool!"});
document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
res = PushBullet.push("link", devID, null, {title: "Hi", body: "Check out pushbullet.js!", url: "https://github.com/alexschneider/pushbullet-js"});
document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
res = PushBullet.push("address", devID, null, {name: "PushBullet is a product of the USA!", address: "United States of America"});
document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
var reasons = ["pushbullet.js is an american made product", "pushbullet.js is free", "pushbullet.js is not from soviet russia", "I can't hear you over the sound of my freedom!"];
res = PushBullet.push("list", devID, null, {title: "Reasons why pushbullet.js is awesome", items: reasons});
document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");