This was the (working) authorization request uri: https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.events&include_granted=true&response_type=code& redirect_uri=com.googleusercontent.apps.MYOAUTHCLIENTID:/oauth2redirect&client_id=MYOAUTHCLIENTID.apps.googleusercontent.com&access_type=offline
This is the (not working) request uri for the token refresh: https://oauth2.googleapis.com/token?code=X&client_id=MYOAUTHCLIENTID.apps.googleusercontent.com&grant_type=refresh_token& refresh_token=Z As Content-Type", "application/x-www-form-urlencoded" encoded. What is the correct URI please? G schrieb am Montag, 19. Juli 2021 um 22:54:51 UTC+2: > What is the correct HTTP request to get a refreshed token ? > > > https://developers.google.com/admin-sdk/directory/v1/guides/manage-mobile-devices > > There is no such thing as "client_secret" for mobile, only "code". Your > API doesn't response more than "code" on the authorization. After the > authorization I can do anything but not refresh the token. When I try that > I get: StatusCode: 400, ReasonPhrase: 'Bad Request'. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/10c2d42f-fea7-480d-9135-4dabd5c99743n%40googlegroups.com.