Request structure

We are going to make a 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 payload, we are providing the target language in which the list of names should be returned. For instance, if we provide en, we will receive the response in English; fr will return French. You can explore this while playing with the API.

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

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