mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.4 KiB
1.4 KiB
Hoppscotch
TL;DR
Setup
brew install --cask 'hoppscotch'
Set environment variables to use with a next request:
const jsonData = pw.response.body; // Save the JSON payload response
pw.env.set("accessToken", jsonData.access_token); // Set "accessToken" to the value of "access_token" in the response
pw.env.set("idToken", jsonData.id_token); // Set "idToken" to the value of "id_token" in the response
Access the variables in the request section by referencing the variable in the format <<variable_name>>.
post-request scripts == tests.
Further readings
Alternatives: