Cloud Translation V2 Client - Class Rest (1.15.0)

Reference documentation and code samples for the Cloud Translation V2 Client class Rest.

Implementation of the Google Cloud Translation REST API.

Namespace

Google \ Cloud \ Translate \ V2 \ Connection

Methods

__construct

Parameter
NameDescription
config array

listDetections

Parameter
NameDescription
args array
Returns
TypeDescription
array

listLanguages

Parameter
NameDescription
args array
Returns
TypeDescription
array

listTranslations

Parameter
NameDescription
args array
Returns
TypeDescription
array

Constants

BASE_URI

Value: 'https://translation.googleapis.com/language/translate/'

DEFAULT_API_ENDPOINT

Value: 'https://translation.googleapis.com'