I have use the code from this topic : Unable to get the subscription information from Google Play Android Developer API
I can get the refresh token from the uri
I call getRefreshToken(token from URI)
and the anwser is :
{
"access_token" : "ya29.1.AADtN_XSr_9GwIybDh0fT5kt487DGYEed2sTzugp_MDOLEJAiMOTY3o17HwnvA7BIgP6",
"token_type" : "Bearer",
"expires_in" : 3407
}
With this acces token I can get information about my google android developper account.
The problem is the access token expires after 1 hour and I can't regenerate it.
I try to call getAccessToken(token from uri)
and the anwser is :
{
"error" : "invalid_grant"
}
I use this code on a google app engine server in JAVA.
If someone recode thus methode with com.google.api.client.auth.oauth2 can be awesome.