Constructing the request

Now, using Postman, we are going to construct a request and fire it to the Cloud Natural Language API. Click on New and then Request inside Postman and provide a name as applicable. This file is available in Chapter 6APIPostman folder. Update the new request as follows:

Field

Value

HTTP Method

POST

URL

https://language.googleapis.com/v1/documents:analyzeEntities?key=API_KEY

Request Body

// SNIPP SNIPP
{
"encodingType": "UTF8",
"document":
{
"type": "PLAIN_TEXT",
"content": "President Obama is speaking at the White House."
}
}
// SNIPP SNIPP


In the preceding fields, update the API 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.191.139.169