Setting up the server code

In Chapter 3, Cloud Vision API, I demonstrated how to use an API key to make a HTTP request from our Node.js application, and in Chapter 4, Video Intelligence API, and Chapter 5, Cloud Speech API, I demonstrated how to work with the client library. We are going to continue using the client library for this section, and the next as well. We have seen how to work with these using Postman; the same can be replicated in any language.

One awesome feature of Postman is that it can convert a HTTP request to any programming language. Once we have validated a HTTP request, we can click on the Code link present just below the button to Send and Save the request. This will show a popup and a language selection, and the code ...

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.