Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract response data and save to env file? #34

Open
cnshenj opened this issue May 24, 2021 · 1 comment
Open

Extract response data and save to env file? #34

cnshenj opened this issue May 24, 2021 · 1 comment

Comments

@cnshenj
Copy link

cnshenj commented May 24, 2021

Using OAuth2, I don't want to create a new access token for every every request - because an access token has several hours of lifetime so I want to reuse/share it until it expires.

Is it possible to extract/save response data (the access token) to the env file so I don't have manually:

  1. Find it in the response
  2. Copy it
  3. Open the env file
  4. Paste it
@cnshenj
Copy link
Author

cnshenj commented May 24, 2021

Also, how do I specify a "common" part to be applied to each request in a .pyr file without specifying it in each request?
For example, I'd like to add the Authorization header to each request. But I don't want to repeat it in each request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant