如何从邮递员的API下载excel(.xls)文件? [英] How to download excel (.xls) file from API in postman?
问题描述
我有一个 API 端点和该 API 的授权令牌.
I am having an API endpoint and Authorization token for that API.
上述 API 用于 .xls
报告下载,我如何使用(如果可能)Postman 查看下载的 .xls
文件?
The said API is for .xls
report download, how can I view the downloaded .xls
file using (if possible) Postman?
如果无法使用 Postman,我应该寻找哪些其他编程方式?
If it is not possible using Postman what are the other programmatic ways I should be looking for?
推荐答案
尝试在您提出请求时选择 send and download
而不是 send
.(蓝色按钮)
Try selecting send and download
instead of send
when you make the request. (the blue button)
https://www.getpostman.com/docs/responses
"对于二进制响应类型,您应该选择发送和下载
,这样您就可以将响应保存到硬盘上.然后您可以使用适当的查看器查看它."
"For binary response types, you should select Send and download
which will let you save the response to your hard disk. You can then view it using the appropriate viewer."
这篇关于如何从邮递员的API下载excel(.xls)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!