<reponame>Bunnys666/mm
curl \
--request POST \
--data 'client_id=866455717552-bh8o47mk4crdq6dh01bo4jmuo4e9u5fv.apps.googleusercontent.com&client_secret=Dp1Itj2uXrvzS7rtv4ZGIMfq&refresh_token=[Refresh token granted by second step]&grant_type=refresh_token' \
https://accounts.google.com/o/oauth2/token

curl \
--request POST \
--data "code=[Authentcation code from authorization link]&client_id=[Application Client Id]&client_secret=[Application Client Secret]&redirect_uri=urn:ietf:wg:oauth:2.0:oob&grant_type=authorization_code" \
https://accounts.google.com/o/oauth2/token

https://accounts.google.com/o/oauth2/auth?client_id=866455717552-bh8o47mk4crdq6dh01bo4jmuo4e9u5fv.apps.googleusercontent.com&redirect_uri=https://developers.google.com/oauthplayground/&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.events%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar&response_type=code


curl --request POST \
  --url 'https://accounts.google.com/o/oauth2/token/' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=authorization_code \
  --data 'client_id=866455717552-bh8o47mk4crdq6dh01bo4jmuo4e9u5fv.apps.googleusercontent.com' \
  --data client_secret=<KEY> \
  --data code=code \
  --data 'redirect_uri=https://developers.google.com/oauthplayground/'
