首页 > 解决方案 > 如何通过 API 从 Zoho Inventory 获取完整的图片 URL?

问题描述

我从 api 响应中得到了这个文件: https://inventory.zoho.com/api/v1/items/{item_id}

"documents":[
{
"source_formatted":"Desktop",
"can_send_in_mail":false,
"file_name":"Personalization-vantage-technology.jpg",
"file_type":"jpg",
"file_size_formatted":"40.2 KB",
"attachment_order":1,
"source":"desktop",
"document_id":"1877812000004113075",
"file_size":"41179",
"alter_text":""
}
],

问题是如何获得完整的图像 URL?我想在我的网站上显示图像。

标签: imageapiinventoryzoho

解决方案


我从 Zoho 那里得到了答案。这个API返回一张图片,记得使用item_id

Greetings from Zoho Inventory!

We would like to inform you that in order to retrieve image of an item you can use the below API request.

https://inventory.zoho.com/api/v1/items/{item_id}/image?authtoken=XXXXX&organization_id=XXXXX

METHOD: GET


Hope this helps. 

If you have further queries, kindly feel free to get back to us.


推荐阅读