I'm doing a simple jquery ajax call to the url as seen below. The response is OK 200 and I'm trying to console.log the responseText, but I'm getting nothing. What am I doing wrong?
And how would I do this in pure javascript without jQuery?
$.ajax({
url:'https://poloniex.com/private.php?currencyPair=BTC_LTC&rate=0.016&amount=1&command=buy',
dataType:'json',
success: function(data, textStatus, xhr){
console.log('asdfasdfadsf');
console.log(data);
console.log('hello' + textStatus);
console.log(xhr.responseText);
}//success
}); //ajax