如何从邮递员的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?
推荐答案
在发出请求时尝试选择发送并下载而不是发送。 (蓝色按钮)
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屋!