0

Is it possible to authorize with Google Cloud with Service Account without using google cloud SDK? I'm developing integration with DialogFlow with our java project, but dialogflow java library is still on alpha (0-74.0-alpha), so, I want to integrate via custom requests.

streamride
  • 567
  • 4
  • 16
  • 1
    I believe their github has sample code that tell you how to use code to authorize requests https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/auth/src/main/java/com/google/cloud/auth/samples/AuthExample.java – anon Dec 20 '18 at 16:33
  • yes, you can do authorization in the following way: https://stackoverflow.com/questions/26196515/uploading-objects-to-google-cloud-storage-buckets-in-c-sharp?answertab=active#tab-top I did the same in DotNet. – Jayoti Parkash Mar 25 '19 at 05:59

1 Answers1

0

Here you can find step by step instructions how to set up authentication for Dialogflow.. V2 of the Dialogflow API relies on a Google Cloud Platform Service Account for authentication, instead of the previously used client and developer access tokens.

Building your app in Java, you can also use Java Google API Client library Then you can build credentials using OAuth 2.0

Here you can see samples of the implementation of the libraries

Pawel Czuczwara
  • 1,442
  • 9
  • 20