So, below is my code. I believe I’m on the right track, but I don’t fully understand how to actually filter down to pull a quote. I’m getting {Batch Complete} which tells me I’m getting some level of success. But knowing how/where to filter quotes out is where I’m getting lost.
$(document).ready(function(){
var API = "https://api.forismatic.com/api/1.0/";
$("#quoteBTN").on('click', function(){
$.ajax({
url: API,
dataType: "jsonp",
data: {
format: "json",
action: "query",
},
success: function(data) {
console.log(data);
}
});
} );
});