You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for uploading the try-prediction sample.
We've downloaded the code and encountered two incompatibility issues:
AuthReturnServlet.java - AccessTokenResponse is deprecated.
We'd like to replace the following line:
AccessTokenResponse tokens = new GoogleAuthorizationCodeGrant(transport, jsonFactory, clientId, clientSecret, code, IndexServlet.redirectUri).execute();
Predict Servlet.java - GoogleAccessProtectedResource is deprecated.
We'd like to replace the folioing line:
GoogleAccessProtectedResource requestInitializer = new GoogleAccessProtectedResource(tokens.getAccessToken(), httpTransport, jsonFactory, clientId, clientSecret, tokens.getRefreshToken());
We'd appreciate it if you could direct us to alternatives which work with the latest API versions.
Dear Marc,
Thank you for uploading the try-prediction sample.
We've downloaded the code and encountered two incompatibility issues:
We'd like to replace the following line:
AccessTokenResponse tokens = new GoogleAuthorizationCodeGrant(transport, jsonFactory, clientId, clientSecret, code, IndexServlet.redirectUri).execute();
We'd like to replace the folioing line:
GoogleAccessProtectedResource requestInitializer = new GoogleAccessProtectedResource(tokens.getAccessToken(), httpTransport, jsonFactory, clientId, clientSecret, tokens.getRefreshToken());
We'd appreciate it if you could direct us to alternatives which work with the latest API versions.
Thanks,
Rydell