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.