X Tutup
Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Current version is deprecated, request for work around #1

@rydellg

Description

@rydellg

Dear Marc,

Thank you for uploading the try-prediction sample.

We've downloaded the code and encountered two incompatibility issues:

  1. 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();
  2. 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.

Thanks,
Rydell

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup