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";

PushBullet.push("note", devID, null, {title: "Hi", body: "pushbullet.js is cool!"}, function(err, res) {
    if(err) {
        throw err;
    } else {
        document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
    }
});
PushBullet.push("link", devID, null, {title: "Hi", body: "Check out pushbullet.js!", url: "https://github.com/alexschneider/pushbullet-js"}, function(err, res) {
    if(err) {
        throw err;
    } else {
        document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
    }
});
PushBullet.push("address", devID, null, {name: "PushBullet is a product of the USA!", address: "United States of America"}, function(err, res) {
    if(err) {
        throw err;
    } else {
        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!"];
PushBullet.push("list", devID, null, {title: "Reasons why pushbullet.js is awesome", items: reasons}, function(err, res) {
    if(err) {
        throw err;
    } else {
        document.getElementById("result").insertAdjacentHTML("beforeEnd", JSON.stringify(res, null, 4) + "\n");
    }
});