<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > DLT. - DeepL-Translate > DLT. - DeepL Translate |
MiniRobotLanguage (MRL)
DLT.Set Endpoint
Set/change the endpoint for the DeepL Translator
Intention
The DLT.Set Endpoint command is used to set the endpoint for the DeepL Translator. An endpoint in this context refers to the URL that the DeepL Translator uses to access the translation service.
Different versions of the DeepL service (such as the free version and the pro version) use different endpoints. Therefore, it may be necessary to change the endpoint depending on the version of the DeepL service you are using.
Additionally, if DeepL introduces new endpoints or if you want to use a custom endpoint (for example, for testing or development purposes), you can use this command to set the endpoint to a custom URL.
Syntax
DLT.Set Endpoint[|P1]
Parameter Explanation
P1 - (optional) The endpoint setting. This can be "free", "pro", or a custom URL.
If P1 is "free" or an empty string, the endpoint will be set to "https://api-free.deepl.com/v2/translate".
If P1 is "pro", the endpoint will be set to "https://api.deepl.com/v2/translate".
If P1 is neither "free" nor "pro", it will be treated as a custom endpoint URL.
If no parameter is provided, P1 will be set to the free endpoint URL.
Example
'***********************************
' Set Endpoint for DeepL
'***********************************
$$URL=https://api-free.deepl.com/v2/translate
DLT.Sep|$$URL
ENR.
Remarks
-
Limitations:
-
See also:
•