Constructing the request

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

Update the new request as follows:

Field

Value

HTTP method

POST

URL

https://translation.googleapis.com/language/translate/v2?key=API_KEY

Request body

// SNIPP SNIPP
{
"target": "fr",
"q": "Hello World!"
}
// SNIPP SNIPP

 

In the previous fields, update the API key as applicable.

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

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