Table of Contents

ITMSFNCCustomCloudTranslation Interface

Abstracts a translation service provider, defining how requests for translation, language detection and supported languages are built, sent and parsed.

API unit family: TMSFNCCloudTranslation Extends: IInterface

Syntax

ITMSFNCCustomCloudTranslation = interface(IInterface)

Methods

Name Description
AddDetectHeaders Adds the headers required for a language-detection request.
AddSupportedLanguagesHeaders Adds the headers required for a supported-languages request.
AddTranslateHeaders Adds the headers required for a translate request.
GetDetectPath Returns the request path for a language-detection request.
GetDetectPostData Builds the request body for a language-detection request.
GetDetectQuery Returns the query string for a language-detection request.
GetDetectRequestMethod Returns the HTTP method used for a language-detection request.
GetHost Returns the host name used for the service requests.
GetIdentifier Returns the unique identifier of the service provider.
GetSupportedLanguagesPath Returns the request path for a supported-languages request.
GetSupportedLanguagesQuery Returns the query string for a supported-languages request.
GetSupportedLanguagesRequestMethod Returns the HTTP method used for a supported-languages request.
GetTranslatePath Returns the request path for a translate request.
GetTranslatePostData Builds the request body for a translate request.
GetTranslateQuery Returns the query string for a translate request.
GetTranslateRequestMethod Returns the HTTP method used for a translate request.
IsValid Indicates whether the service is configured with valid connection properties.
NeedsToken Indicates whether the service requires an authentication token to be requested before issuing requests.
ParseDetect Parses the service response of a detection request into the request object.
ParseSupportedLanguages Parses the service response of a supported-languages request into the provided list.
ParseTranslate Parses the service response of a translate request into the request object.
RequestToken Requests an authentication token from the service.