Accessing Rise Vision Api via Service accounts

  • 1
  • Question
  • Updated 3 years ago
  • Answered
can i able to use service account to access core api without email?

credential = new GoogleCredential.Builder(). setTransport(transport).
setJsonFactory(jsonfactory).
setServiceAccountId(SERVICEACCOUNT).
setServiceAccountPrivateKeyFromP12File(
new java.io.File("apigateway-4d9c90d3136a.p12"))
.setServiceAccountScopes( Arrays.asList(
https://www.googleapis.com/auth/userinfo.email "))
.build();
Photo of aathi rajkumar

aathi rajkumar

  • 154 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi Aathi,
Can I please check if you have the app registered with us?
Photo of aathi rajkumar

aathi rajkumar

  • 154 Points 100 badge 2x thumb
yeah sure ..
client id: 372543062838fe95u68ca8emb1bq760blfoppnf39le4.apps.googleusercontent.com
Name -smf
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Please see this thread regarding service accounts to see if that helps answer your question. Thanks!