JSFiddle - React, Tailwind, and code Playground

by dhchow

JavaScript

$(function(){
    $.ajax({
        type: "POST",
        url: "https://enterprise.cotweet.com/api/2/token.json",
        data: {
            context: $.toJSON(cotweet.ping.instance().retrieveProxy("ContextProxy").getContext())
        },
        success: function(response) {
            console.log("token: " + response.data);
        }
    });    
});