See the Pen Imgur API Upload by John Doe (@04) on CodePen.
簡単にアップロードできます
await fetch("https://api.imgur.com/3/upload", {
method: "POST",
headers: {
Authorization: "Client-ID aca6d2502f5bfd8",
},
body: new FormData(document.forms[0]),
});
API仕様書
See the Pen Imgur API Upload by John Doe (@04) on CodePen.