代码:
Response<OAuthCredentials> response =
oAuthClient.getAccessToken(code,authenticationConf.getClientId(),
authenticationConf.getClientSecret(),
authenticationConf.getCodeRedirectUri(),
"authorization_code").execute();
例外:
Exception in thread "main" com.mautini.assistant.demo.exception.AuthenticationException: Error during authentication
at com.mautini.assistant.demo.authentication.AuthenticationHelper.authenticate(AuthenticationHelper.java:75)
at com.mautini.assistant.demo.GoogleAssistantClient.main(GoogleAssistantClient.java:41)
Caused by: java.net.SocketTimeoutException: connect timed out