I've been attempting to utilize the imgur API feature that allows you to upload an image by sending a GET request to http://api.imgur.com/2/upload
with a URL in the form data. However, I have been unsuccessful in making it work as intended, as it simply returns nothing.
$.get("http://api.imgur.com/2/upload.json", {
url: 'http://upload.wikimedia.org/wikipedia/commons/3/3e/Phalaenopsis_JPEG.png'
}, function(data) {
return console.log(data);
});
Are there any other options available? Or does anyone have insight on how to modify the above code for successful execution?
Refer to the imgur API documentation here for more information.