Power Automate - Part 2/3 - Google API OAuth 2.0 - Obtain Access & Refresh Tokens

Опубликовано: 21 Октябрь 2024
на канале: abm abm
5,257
31

Part 2/3 Power Automate - Google API OAuth 2.0 video series explains how to access Google API using OAuth 2.0. Here it explains how to obtain access and refresh tokens.

Related Video Part 1 - How to obtain authorisation code?
   • Power Automate - Part 1/3 - Google AP...  

Related Video Part 3 - How to obtain bearer token using refresh token and access Google Drive API?
   • Power Automate - Part 3/3 - Google AP...  

Google Documentation

https://developers.google.com/identit...

Postman settings:

URL
https://accounts.google.com/o/oauth2/...

Post

x-www-from-urlencoded
Key
Content-Type
Value
application/x-www-from-urlencoded

Body Request

{
"code":"xxxxxxxx",
"client_id":"xxxxxxxxxxxxxxx",
"client_secret":"xxxxxxxxxxxxxxxx",
"redirect_uri":"https://global.consent.azure-apim.net...",
"grant_type":"authorization_code"
}

Other Useful Links:

https://stackoverflow.com/questions/4...

https://stackoverflow.com/questions/8...

https://console.cloud.google.com/apis...