key | value |
---|---|
app_id | ttdb96ad2b44aeff3301 |
access_token | 567234784 |
image_type | jpg |
image_content | 010101 |
key | value |
---|---|
app_id | ttdb96ad2b44aeff3301 |
access_token | 567234784 |
image_type | jpg |
image_content | 010101 |
错误码 err_no | 描述 err_tips | 排查建议 |
---|---|---|
0 | "" | 上传成功 |
2008 | 签名校验异常,请 使用正确的签名和 json 传参 | 请检查app_id和access_token或者thirdparty_id和component_access_token的正确性 |
7004 | 超过单个图片允许的限制(2M) | 请适当压缩图片大小以免超过上传限制 |
7005 | 图片文件为空 | 商户更换文件后,重新调用 |
7006 | 未知图片类型 | 图片类型必须为JPG, PNG,JPEG |
curl --location --request POST 'https://developer.toutiao.com/api/apps/ecpay/saas/image_upload' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "string",
"access_token": "string",
"thirdparty_id": "string",
"component_access_token": "string",
"image_type": "string",
"image_content": "string"
}'
{
"err_no": 0,
"err_tips": "string",
"image_id": "string"
}