MyMemory - Translation Memory

부분 유료
분류별 Translated | 업데이트됨 4 days ago | Business
인기

9.7 / 10

지연 시간

626ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

English to Greek - Works in Code Snippet, not in my app

Rapid account: David Delmonte
david.delmonte
4 years ago

Hi all, I’m trying to translate a word from English to Greek.

I set up in the Test End Point: the languages as “en|el”

When I test the endpoint, it works fine. When I copy the request into my swift app, I get the 403 with “INVALID LANGUAGE PAIR SPECIFIED”. I also get the same result when using the default “en|it”

Anyone else experienced this?

Rapid account: David Delmonte
david.delmonte Commented 4 years ago

Thanks for the fast reply…

My http call is: “https://translated-mymemory—translation-memory.p.rapidapi.com/api/get?mt=1&onlyprivate=0&de=a%2540b.c&langpair=en%257Cel&q=Hello%20World!”

And I’m using Swift v.5.x

Rapid account: Translated
translated Commented 4 years ago

Hi David,

what version of Swift are you using?

What the snippet does is very simple,
it execute an HTTP GET call to this address "https://translated-mymemory—translation-memory.p.rapidapi.com/api/get?mt=1&onlyprivate=0&de=a%2540b.c&langpair=en%257Cit&q=Hello%20World!"
with the correct credentials in the header: “x-rapidapi-host” and “x-rapidapi-key”.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입