@@ -68,7 +68,7 @@ public static CompletableFuture<ConversionResult> convert(String fromFormat, Str
6868 }
6969 }
7070
71- Request request = Http .getRequestBuilder ()
71+ Request request = Http .getRequestBuilder (config )
7272 .url (url )
7373 .addHeader ("Accept" , "application/json" )
7474 .addHeader ("Content-Type" , "multipart/form-data" )
@@ -99,7 +99,7 @@ public static User getUser() {
9999
100100 public static User getUser (Config config ) {
101101 HttpUrl url = Http .getUrlBuilder (config ).addPathSegment ("user" ).build ();
102- Request request = Http .getRequestBuilder ()
102+ Request request = Http .getRequestBuilder (config )
103103 .url (url )
104104 .addHeader ("Accept" , "application/json" )
105105 .build ();
@@ -124,13 +124,8 @@ public static CompletableFuture<ConversionResult> convertFile(Path fromFile, Str
124124 }
125125
126126 @ SuppressWarnings ("unused" )
127- public static CompletableFuture <ConversionResult > convertFile (Path fromFile , String toFormat , String secret , Param ... params ) throws IOException {
128- return convertFile (fromFile , toFormat , Config .defaults (secret ), params );
129- }
130-
131- @ SuppressWarnings ("unused" )
132- public static CompletableFuture <ConversionResult > convertFile (Path fromFile , String toFormat , String token , String apiKey , Param ... params ) throws IOException {
133- return convertFile (fromFile , toFormat , Config .defaults (token , apiKey ), params );
127+ public static CompletableFuture <ConversionResult > convertFile (Path fromFile , String toFormat , String apiCredentials , Param ... params ) throws IOException {
128+ return convertFile (fromFile , toFormat , Config .defaults (apiCredentials ), params );
134129 }
135130
136131 public static CompletableFuture <ConversionResult > convertFile (Path fromFile , String toFormat , Config config , Param ... params ) throws IOException {
@@ -144,13 +139,8 @@ public static void convertFile(String fromPathToFile, String toPathToFile) {
144139 }
145140
146141 @ SuppressWarnings ("unused" )
147- public static void convertFile (String fromPathToFile , String toPathToFile , String secret ) {
148- convertFile (fromPathToFile , toPathToFile , Config .defaults (secret ));
149- }
150-
151- @ SuppressWarnings ("unused" )
152- public static void convertFile (String fromPathToFile , String toPathToFile , String token , String apiKey ) {
153- convertFile (fromPathToFile , toPathToFile , Config .defaults (token , apiKey ));
142+ public static void convertFile (String fromPathToFile , String toPathToFile , String apiCredentials ) {
143+ convertFile (fromPathToFile , toPathToFile , Config .defaults (apiCredentials ));
154144 }
155145
156146 public static void convertFile (String fromPathToFile , String toPathToFile , Config config ) {
@@ -169,13 +159,8 @@ public static List<Path> convertFileToDir(String fromPathToFile, String toFormat
169159 }
170160
171161 @ SuppressWarnings ("unused" )
172- public static List <Path > convertFileToDir (String fromPathToFile , String toFormat , String outputDirectory , String secret , Param ... params ) {
173- return convertFileToDir (fromPathToFile , toFormat , outputDirectory , Config .defaults (secret ), params );
174- }
175-
176- @ SuppressWarnings ("unused" )
177- public static List <Path > convertFileToDir (String fromPathToFile , String toFormat , String outputDirectory , String token , String apiKey , Param ... params ) {
178- return convertFileToDir (fromPathToFile , toFormat , outputDirectory , Config .defaults (token , apiKey ), params );
162+ public static List <Path > convertFileToDir (String fromPathToFile , String toFormat , String outputDirectory , String apiCredentials , Param ... params ) {
163+ return convertFileToDir (fromPathToFile , toFormat , outputDirectory , Config .defaults (apiCredentials ), params );
179164 }
180165
181166 public static List <Path > convertFileToDir (String fromPathToFile , String toFormat , String outputDirectory , Config config , Param ... params ) {
@@ -194,13 +179,8 @@ public static Path convertUrl(String url, String toPathToFile, Param... params)
194179 }
195180
196181 @ SuppressWarnings ("unused" )
197- public static Path convertUrl (String url , String toPathToFile , String secret , Param ... params ) {
198- return convertUrl (url , toPathToFile , Config .defaults (secret ), params );
199- }
200-
201- @ SuppressWarnings ("unused" )
202- public static Path convertUrl (String url , String toPathToFile , String token , String apiKey , Param ... params ) {
203- return convertUrl (url , toPathToFile , Config .defaults (token , apiKey ), params );
182+ public static Path convertUrl (String url , String toPathToFile , String apiCredentials , Param ... params ) {
183+ return convertUrl (url , toPathToFile , Config .defaults (apiCredentials ), params );
204184 }
205185
206186 public static Path convertUrl (String url , String toPathToFile , Config config , Param ... params ) {
@@ -219,13 +199,8 @@ public static Path convertRemoteFile(String url, String toPathToFile, Param... p
219199 }
220200
221201 @ SuppressWarnings ("unused" )
222- public static Path convertRemoteFile (String url , String toPathToFile , String secret , Param ... params ) {
223- return convertRemoteFile (url , toPathToFile , Config .defaults (secret ), params );
224- }
225-
226- @ SuppressWarnings ("unused" )
227- public static Path convertRemoteFile (String url , String toPathToFile , String token , String apiKey , Param ... params ) {
228- return convertRemoteFile (url , toPathToFile , Config .defaults (token , apiKey ), params );
202+ public static Path convertRemoteFile (String url , String toPathToFile , String apiCredentials , Param ... params ) {
203+ return convertRemoteFile (url , toPathToFile , Config .defaults (apiCredentials ), params );
229204 }
230205
231206 public static Path convertRemoteFile (String url , String toPathToFile , Config config , Param ... params ) {
@@ -245,13 +220,8 @@ public static List<Path> convertRemoteFileToDir(String url, String toFormat, Str
245220 }
246221
247222 @ SuppressWarnings ("unused" )
248- public static List <Path > convertRemoteFileToDir (String url , String toFormat , String outputDirectory , String secret , Param ... params ) {
249- return convertRemoteFileToDir (url , toFormat , outputDirectory , Config .defaults (secret ), params );
250- }
251-
252- @ SuppressWarnings ("unused" )
253- public static List <Path > convertRemoteFileToDir (String url , String toFormat , String outputDirectory , String token , String apiKey , Param ... params ) {
254- return convertRemoteFileToDir (url , toFormat , outputDirectory , Config .defaults (token , apiKey ), params );
223+ public static List <Path > convertRemoteFileToDir (String url , String toFormat , String outputDirectory , String apiCredentials , Param ... params ) {
224+ return convertRemoteFileToDir (url , toFormat , outputDirectory , Config .defaults (apiCredentials ), params );
255225 }
256226
257227 public static List <Path > convertRemoteFileToDir (String url , String toFormat , String outputDirectory , Config config , Param ... params ) {
0 commit comments