Constructing the request

Now, we will create another request in Postman. Click on New and then Request inside Postman. Fill in the form as applicable. I have created a new collection named Cloud Vision API and placed this request inside that. You can import that collection into your Postman as well. This file is available in the Chapter 3APIPostman folder. Update the new request as follows:

Field

Value

HTTP method

POST

URL

https://vision.googleapis.com/v1/images:annotate?key=API_KEY

Request body

// SNIPP SNIPP
{
"requests": [
{
"image":
{
"content": "-- BASE64 ENCODED STRING ---"
},
"features": [
{
"type": "SAFE_SEARCH_DETECTION"
}]
}]
}
// SNIPP SNIPP

 

In the preceding fields, update the API key and base64 encoded string, as applicable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.50.87