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
{{ message }}
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
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.