diff --git a/README.md b/README.md index 32efc4c..5402b78 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,12 @@ Be careful not to expose your key, for example when sharing source code. import com.deepl.api.*; class Example { - DeepLClient client; - public Example() throws Exception { String authKey = "f63c02c5-f056-..."; // Replace with your key - client = new DeepLClient(authKey); + Translator translator = new Translator(authKey); + TextResult result = - client.translateText("Hello, world!", null, "fr"); + translator.translateText("Hello, world!", null, "fr"); System.out.println(result.getText()); // "Bonjour, le monde !" } }