zumbov2 / deeplr

An R wrapper for the DeepL Translator API
Other
39 stars 4 forks source link

DeepL API key not accepted #9

Closed dhub100 closed 7 months ago

dhub100 commented 7 months ago

I have a valid deepl API key (XXXXXX) which I verified with this link: https://api.deepl.com/v2/translate?auth_key=XXXXXX&text=Hello&target_lang=de

My R syntax library(deeplr) available_languages2(auth_key = ("XXXXXX")

I get the following answer Fehler in response_check(response) : Authorization failed. Please supply a valid auth_key parameter.

Can you please advise? Thank you.

zumbov2 commented 7 months ago

Hi @dhub100

Thanks for your feedback. I just gave it a try with my own developer key and it worked. Do you have a developer key? deeplr only works with developer keys...

There is a free version (DeepL API Free) and a paid version (DeepL API Pro). With the former you use functions that end with a 2 (e.g. available_languages2), with the latter you use functions that end without a 2 (e.g. available_languages).

dhub100 commented 7 months ago

Hi David

Sorry, I was not aware of the "2" that makes the difference between Free and Pro. Last Monday I upgraded to Pro and this obviously caused the error.

My R script runs as expected now. Thanks a lot for your swift response!

Best, Daniel

Am Do., 28. März 2024 um 13:28 Uhr schrieb David Zumbach < @.***>:

Hi @dhub100 https://github.com/dhub100

Thanks for your feedback. I just gave it a try with my own developer key and it worked. Do you have a developer key https://www.deepl.com/en/pro/change-plan#developer? deeplr only works with developer keys...

There is a free version (DeepL API Free) and a paid version (DeepL API Pro). With the former you use functions that end with a 2 (e.g. available_languages2), with the latter you use functions that end without a 2 (e.g. available_languages).

a https://www.deepl.com/de/pro/change-plan#developer

— Reply to this email directly, view it on GitHub https://github.com/zumbov2/deeplr/issues/9#issuecomment-2025069369, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHNRS55G45EBEKCORRWZVLY2P5EBAVCNFSM6AAAAABFMT65LWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGA3DSMZWHE . You are receiving this because you were mentioned.Message ID: @.***>