424,045 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,045 IT Pros & Developers. It's quick & easy.

How to use / implement a created Google Cloud API

P: 25
hi guru,

I would like to implement my custom model but do not know how to do that.

In detail, I would like to use the result of PREDICT tab, which is in AutoML Vision UI, as a function namely function A. After that, I have some code in C# which will call function A to use.

Following is what I tried:
In Google Cloud Platform Console, at (PROJECT_NAME)$ directory,

-add request.json file (the content of this file was generated by AutoML Vision UI after training model)
- run curl command
curl -X POST -H "Content-Type: application/json" \ -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \ https://automl.googleapis.com/v1beta...569882:predict -d @request.json

And here is the message that I got your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the automl.googleapis.com. We recommend that most server application use service accounts instead. For more information about service accounts and how to use them in your appllication, see https://cloud.google.com/docs/authentication/.

Please kindly let me know what I should do.

Thanks & Best Regards,


Attached Images
File Type: jpg ask console.jpg (201.3 KB, 8 views)
File Type: jpg ask GU.jpg (128.8 KB, 17 views)
Nov 7 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.