Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

184
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda