It’s using OAuth2.0 and requires an Access Token that expires after 60 minutes.
To refresh it, I need to make an API call, providing my OAuth2.0 credentials and a Refresh Token (that I got the last time I called for a new Access Token).
I’ve tried to do this using the “Get New Access Token” form in Postman, but there doesn’t appear to be an option for the refresh token.
I’ve been looking in the documentation & YouTube channel, but it’s escaped me!
Would really appreciate being pointed in the right direction.
To add a header with a variable value, simply add a header to your request and for the value add {{variableName}}. If you want Basic_Auth to end up in the header, then set the value to {{Basic_Auth}}.
The thing that confuses me is that it’s saying that the Basic Authentication Header should include my OAuth2.0 Client ID and Client Secret. How do I group these two strings into a single variable (“Basic Oauth”).
Secondly, the demo is using: ‘Authorization’: pm.variables.get(“Basic_Auth”)
Unless I’m mistaken, is this not for getting a Local Variable? If it was a Collection Variable, would it not have to state: pm.collectionVariables.get… ?
Did you ever get this sorted? I am running into the same issue where I am trying to get the refresh access token using Google APIs and used the Medium article mentioned as a base. The {{Basic_Auth}} part is also tripping me up.