JSFiddle - React, Tailwind, and code Playground
by D S
JavaScript
var code = "code";
var myurl = "http://mysite.com/callback/";
var mysecret = "cc2957f021a047169849c4841e02f216";
var myid = "d05c7af0a091410fb67edb928f1177d3";
$.ajax(
{
method: "GET",
url: "https://accounts.spotify.com/authorize",
data: {
"client_id": myid,
"response_type": code,
"redirect_uri": myurl,
},
success: function(result) {
// handle result...
console.log("dan");
},
}
);