
Api key vs istemez direk upoad
Denemek isteyenler http://imgur.com/ adresine girip console kodları yapıştırmaları yeterlidir

resim ="https://www.r10.net/images/logom7.png";
function king(){
var xhr = new XMLHttpRequest();
var params ="url="+resim;
xhr.open("POST", "http://imgur.com/upload/", true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
sonuc = JSON.parse(xhr.responseText);
link = (sonuc.data.hash);
getir();
}
}
xhr.send(params);
}
king();
function getir(){
console.log("http://i.imgur.com/"+link+".jpg");
}