使用Postman进行API Web服务测试 [英] API webservice testing with Postman

查看:180
本文介绍了使用Postman进行API Web服务测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Chrome内安装了 Postman 来测试

I installed Postman inside Chrome to test Kairos API webservice. I have set following fields:

我收到错误消息,但是关于API文档,应该是

I get error message, but regarding to API documentation it should be working in this format.


缺少身份验证参数

Authentication parameters missing


推荐答案

在Kairos的网站上显示:

On Kairos' website it says:


请求必须使用您的API密钥进行身份验证。 这必须作为HTTP标头发送。

Requests must be authenticated with your API key. This must be sent as an HTTP header.

因此,点击将令牌添加到标头中的以前使用下的单选按钮,而不是将令牌添加到url按钮中,它应该可以工作!

So click the "Add token to the header" radio button under "Previously Used" instead of the "Add token to the url" button, and it should work!

这篇关于使用Postman进行API Web服务测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆