Image(图片管理)
POST /api/Image/UploadImage
{
"base64": "<string>"
}const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "<API Key>");
const raw = JSON.stringify({
"base64": "<string>"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("//api/Image/UploadImage", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Last updated