• 01-05-2014, 06:28:36
    #1
    Eklentim İçin Yapmışdım Sizlerede Yararlı olucagını düşündüm
    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");
    }
  • 08-05-2014, 17:20:27
    #2
    Üyeliği durduruldu
    Teşekkürler işime yaradı