image - 如何通过 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?我想在我的网站上显示图像。
解决方案
我从 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.
推荐阅读
- python - 在多个 Python 文件中分离 CLI 命令
- c++ - 如何将 setquery 计数保存到 Qt 中的字符串
- sql - 计算用户登录 1x、2x、3x 的次数
- java - 如何在jpa中为mysql设置默认当前日期
- java - SEC_E_INVALID_TOKEN (0x80090308) - Jetty HTTPS servlet
- html - 用身体图像背景制作颜色叠加
- apache-spark - 为什么在 Databricks 笔记本中运行的命令比它的工作花费更多的时间?
- flutter - 如何迁移 snapshot.data.data(); 零安全
- python - 使用人脸识别怎么样?
- python - xmldiff api 返回额外的(不必要的)编辑操作