Now, using Postman, we are going to construct a request and fire it to the Cloud Translation API using these steps:
- Click on New and then Request inside Postman, and provide a name as applicable. I have created a new collection named Cloud Translation API and placed this request inside that. You can import that collection into your Postman as well. 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/languages?key=API_KEY
Request body
// SNIPP SNIPP
{
"target": "en"
}
// SNIPP SNIPP
In the previous fields, update the API key as applicable.