These are the variables we are changing the value of in the collection pre-request script. Now for the variables that have dynamic content. The only time either of these variables would need to change would be if you changed the endpoint of your authorization server or your client id/secret changed. In our case here, the variables that would hold static content are: Collection VariablesĪs stated before, collection variables are static values that do not need to span across multiple collections. Now that we understand what the script is doing, let’s figure out which variables need to be collection variables, and which ones need to be environment variables. Sets the access token to an environment variable and records the time the access token was granted.If it has, it will make a call to the authentication server to retrieve a new access token.
0 Comments
|