使用OAuth2和Postman进行测试

时间:2015-02-13 10:59:17

标签: zend-framework2 postman apigility

我正在使用ZF2 Apigility,正在为我正在编写的API设置OAuth2工作流程。

到目前为止,我可以完成以下工作:

  1. 调用API并获取令牌

    {
    
    "access_token": "62f6109dcbce42b38f9117b21529faf30fc0ee86",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": null
    }
    
  2. 现在我知道我需要在下一个请求的标头中使用此标记才能访问我的API。

    我只是不确定如何使用PostMan进行此操作?

1 个答案:

答案 0 :(得分:10)

点击标题

然后添加

授权

作为标题

Bearer 62f6109dcbce42b38f9117b21529faf30fc0ee86

作为价值

enter image description here