Skip to content

Commit f19475a

Browse files
committed
Remove alternative converter support
1 parent ed938f1 commit f19475a

File tree

14 files changed

+11
-84
lines changed

14 files changed

+11
-84
lines changed

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.convertapi.client</groupId>
1717
<artifactId>convertapi</artifactId>
18-
<version>2.10</version>
18+
<version>2.11</version>
1919
</dependency>
2020
</dependencies>
2121

examples/src/main/java/com/convertapi/examples/Advanced.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class Advanced {
2222

2323
public static void main(String[] args) throws ExecutionException, InterruptedException {
24-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
24+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2525

2626
// Advanced HTTP client setup
2727
Config.setDefaultHttpBuilder(builder -> {

examples/src/main/java/com/convertapi/examples/AlternativeConverter.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/src/main/java/com/convertapi/examples/ConversionChaining.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class ConversionChaining {
2222

2323
public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {
24-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
24+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2525

2626
System.out.println("Converting PDF to JPG and compressing result files with ZIP");
2727
CompletableFuture<ConversionResult> jpgResult = ConvertApi.convert("docx", "jpg", new Param("file", Paths.get("files/test.docx")));

examples/src/main/java/com/convertapi/examples/ConvertRemoteFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public class ConvertRemoteFile {
2121

2222
public static void main(String[] args) throws ExecutionException, InterruptedException {
23-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
23+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2424

2525
System.out.println("Converting remote PPTX to PDF");
2626
CompletableFuture<ConversionResult> result = ConvertApi.convert("pptx", "pdf",

examples/src/main/java/com/convertapi/examples/ConvertStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public class ConvertStream {
2323

2424
public static void main(String[] args) throws ExecutionException, InterruptedException, IOException {
25-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
25+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2626

2727
// Creating file data stream
2828
InputStream stream = Files.newInputStream(new File("src/main/resources/test.docx").toPath());

examples/src/main/java/com/convertapi/examples/ConvertWebToPdf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public class ConvertWebToPdf {
2121

2222
public static void main(String[] args) throws ExecutionException, InterruptedException {
23-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
23+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2424

2525
System.out.println("Converting WEB to PDF");
2626
CompletableFuture<ConversionResult> result = ConvertApi.convert("web", "pdf",

examples/src/main/java/com/convertapi/examples/ConvertWordToPdfAndPng.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class ConvertWordToPdfAndPng {
2424

2525
public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {
26-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
26+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2727
Path tempDir = Paths.get(System.getProperty("java.io.tmpdir"));
2828

2929
System.out.println("Converting DOCX to PDF and JPG in parallel");

examples/src/main/java/com/convertapi/examples/CreatePdfThumbnail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class CreatePdfThumbnail {
2222

2323
public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {
24-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
24+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
2525
Path tempDir = Paths.get(System.getProperty("java.io.tmpdir"));
2626

2727
System.out.println("Creating PDF thumbnail");

examples/src/main/java/com/convertapi/examples/SimpleConversion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class SimpleConversion {
1212

1313
public static void main(String[] args) {
14-
Config.setDefaultSecret(getenv("CONVERTAPI_SECRET")); //Get your secret at https://www.convertapi.com/a
14+
Config.setDefaultApiCredentials(getenv("CONVERTAPI_CREDENTIALS")); //Get your api credentials at https://www.convertapi.com/a
1515
String resourcePath = "files/test.docx";
1616
String tmpDir = System.getProperty("java.io.tmpdir") + "/";
1717

0 commit comments

Comments
 (0)