File tree 1 file changed +18
-0
lines changed
deepl-java/src/main/java/com/deepl/api
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,24 @@ public DeepLClient(String authKey) throws IllegalArgumentException {
26
26
this (authKey , new DeepLClientOptions ());
27
27
}
28
28
29
+ /**
30
+ * Initializes a new DeepLClient object using your Authentication Key.
31
+ *
32
+ * <p>Note: This function does not establish a connection to the DeepL API. To check connectivity,
33
+ * use {@link DeepLClient#getUsage()}.
34
+ *
35
+ * @param authKey DeepL Authentication Key as found in your <a
36
+ * href="https://www.deepl.com/pro-account/">DeepL account</a>.
37
+ * @param options Additional options controlling Client behaviour.
38
+ * @throws IllegalArgumentException If authKey is invalid.
39
+ * @deprecated Use the constructor that takes {@link DeepLClientOptions} instead of {@link
40
+ * TranslatorOptions}
41
+ */
42
+ @ Deprecated
43
+ public DeepLClient (String authKey , TranslatorOptions options ) throws IllegalArgumentException {
44
+ super (authKey , options );
45
+ }
46
+
29
47
/**
30
48
* Initializes a new DeepLClient object using your Authentication Key.
31
49
*
You can’t perform that action at this time.
0 commit comments