请通过POST方式,提交image_base64,获取imageId,用于后续的图片搜索接口,Base64编码必须是 jpg、jpeg、png、webp 格式的图像文件编码,大小上限为3MB。
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params multipart/form-data
Request Code Samples
curl --location 'https://ecommerce-api.shanjing-inc.com/rest/taobao-global/upload/image' \
--header 'x-app-key;' \
--header 'x-timestrap;' \
--header 'x-sign-method;' \
--header 'x-signature;' \
--header 'x-access-token;' \
--header 'Authorization: Bearer <token>' \
--form 'image_base64="图片Base64串";type=false'
Responses
application/json
{
"errorCode": "string",
"errorMsg": "string",
"data": {
"imageId": "string"
}
}
Modified at 2026-03-14 05:37:03