简体   繁体   English

Postman:我怎样才能从 url 在 post 请求 (/oauth2) 中获取 get-request 的值?

[英]Postman: how can I get a value from url of get-request in post request (/oauth2)?

I send a post-request by Postman.我通过 Postman 发送了一个后期请求。 I have received answers, which consists of post and get requests in Console:我收到了答案,其中包括控制台中的发布和获取请求:

Exmpl:
post-reguest https://domain/oauth2?response_type=token
get-request https: //domain/Result?response_type=token&&result=success#access_token=some_token

I'd like to get the value "some_token" from get-request and put it in variable of Environment in Test (Postman).我想从 get-request 中获取值“some_token”,并将其放入测试环境(邮递员)的变量中。

How can I do it?我该怎么做?

I'm not sure that i understand the question.我不确定我是否理解这个问题。 But you can use the Token that you get like so: Choose the type of Authentication (for example Bearer Token) and insert the Token in the field below但是您可以像这样使用您获得的令牌:选择身份验证类型(例如承载令牌)并在下面的字段中插入令牌

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM