Integration Call
Similar to the desktop software "有道翻译官" (Youdao Translator Official)

API Call
/andtranslateare similar
/translateGET: Input translationPOST$content: Translate content immediately
/translate_forceGET: Input translationPOST$content: Force translate content immediately
/translate_inputGET: Input translation/translate_ocrGET: OCR screenshotPOST$filepath: Recognize image text and translate
/translate_crosswordGET: Crossword translation/translate_mousehookGET: Open/close mouse hook/translate_replaceGET: Execute the replace translation/listenclipboardGET: Open/close clipboard listener/ocrGET: Screenshot OCRPOST$filepath: Recognize image text
/ocr_silenceGET: Silent screenshot OCRPOST: Recognize image text silently and copy to clipboard
/ocr_qrcodeGET: Screenshot QR code recognitionPOST: Recognize QR code in image
/open_windowGET: Open main window/open_preferenceGET: Open preference window/open_historyGET: Open history record page/forbiddenhotkeyGET: Disable/enable global hotkey
Translation example:
shell
#parameter is the content to be translated
curl http://127.0.0.1:50020/translate -d "Hello world."OCR Example:
shell
#parameter is a file path
curl http://127.0.0.1:50020/ocr -d "D:\\tmp\\stranslate.png"