Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable OAuth2.0 for Google Cloud API #15

Closed
3 tasks done
jongfeelkim-VIRNECT opened this issue Mar 11, 2020 · 1 comment
Closed
3 tasks done

Enable OAuth2.0 for Google Cloud API #15

jongfeelkim-VIRNECT opened this issue Mar 11, 2020 · 1 comment
Assignees
Projects

Comments

@jongfeelkim-VIRNECT
Copy link
Owner

jongfeelkim-VIRNECT commented Mar 11, 2020

For google cloud translate text v3, required OAuth2.0

Finally, I want use translate v3 API
https://cloud.google.com/translate/docs/reference/rest/v3/projects/translateText

@jongfeelkim-VIRNECT jongfeelkim-VIRNECT self-assigned this Mar 11, 2020
@jongfeelkim-VIRNECT jongfeelkim-VIRNECT added this to In progress in Process Mar 11, 2020
@jongfeelkim-VIRNECT
Copy link
Owner Author

jongfeelkim-VIRNECT commented Mar 11, 2020

Install Google Cloud Platform SDK

https://cloud.google.com/sdk/docs/

Create OAuth2.0 Client IDs and download json file

image

  • DOWNLOAD JSON click.

Set credentials

  • Open power shell at downloaded json file folder
$env:GOOGLE_APPLICATION_CREDENTIALS="<included project name.json>"

https://cloud.google.com/docs/authentication/production

Get access token - cloud sdk

gcloud auth application-default print-access-token

https://cloud.google.com/translate/docs/simple-translate-call

Get access token - auth server

https://developers.google.com/identity/protocols/oauth2/web-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Process
  
Done
Development

No branches or pull requests

1 participant