Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
How to access Google CloudML REST API from NodeJS application running in appengine

I am running my prediction running in CloudML. I want to invoke predict REST API from my NodeJS application and I want to show the prediction result in the NodeJS app running in AppEngine.

I can find the documentation to do it for Python application. But can't find it for NodeJS.

Can I use normal rest client like node-rest-client? If yes how can I pass the Google Application Default Credentials?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Yes you can use the normal node-rest-client, but since the process for Google Application Default Credentials isn't baked into that client you'll have to use https://github.com/googleapis/google-auth-library-nodejs to use Application Default Credentials.

Alternatively you can use the https://github.com/googleapis/google-api-nodejs-client which should support ADC out of the box. You can find the Cloud ML API here:

https://github.com/googleapis/google-api-nodejs-client/blob/master/src/apis/ml/v1.ts

Specifically, you're looking for the "predict" method.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!