Skip to content

Commit 0da940f

Browse files
committed
Update readme
1 parent f19475a commit 0da940f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ And many others files manipulations.
88
In just few minutes you can integrate it into your application and use it easily.
99

1010
The ConvertAPI-Java library makes it easier to use the Convert API from your Java 8 projects without having to build your own API calls.
11-
You can get your free API secret at https://www.convertapi.com/a
11+
You can get your free API credentials at https://www.convertapi.com/a
1212

1313
## Installation
1414

@@ -19,21 +19,18 @@ Add the following dependency to your pom.xml:
1919
<dependency>
2020
<groupId>com.convertapi.client</groupId>
2121
<artifactId>convertapi</artifactId>
22-
<version>2.10</version>
22+
<version>2.11</version>
2323
</dependency>
2424
```
2525

2626
## Usage
2727

2828
### Configuration
2929

30-
You can get your secret at https://www.convertapi.com/a
30+
You can get your credentials at https://www.convertapi.com/a
3131

3232
```java
33-
Config.setDefaultSecret("your-api-secret");
34-
// or token authentication
35-
Config.setDefaultToken("your-token");
36-
Config.setDefaultApiKey("your-api-key");
33+
Config.setDefaultApiCredentials("your-api-secret");
3734
```
3835

3936
### File conversion
@@ -98,7 +95,7 @@ int conversionsConsumed = user.ConversionsConsumed;
9895
Create `Config` instance with the alternative domain and provide it in `convert` method. Dedicated to the region [domain list](https://www.convertapi.com/doc/servers-location).
9996

10097
```java
101-
Config config = new Config(secret, "https", "eu-v2.convertapi.com", 0, httpClientBuilder);
98+
Config config = new Config(credentials, "https", "eu-v2.convertapi.com", 0, httpClientBuilder);
10299
```
103100

104101
### More examples
@@ -114,13 +111,13 @@ import com.convertapi.ConvertApi;
114111

115112
public class SimpleConversion {
116113
public static void main(String[] args) {
117-
ConvertApi.convert("source.docx", "result.pdf", "your-api-secret");
114+
ConvertApi.convert("source.docx", "result.pdf", "your-api-credentials");
118115
}
119116
}
120117
```
121118

122119
This is the bare-minimum to convert a file using the ConvertAPI client, but you can do a great deal more with the ConvertAPI Java library.
123-
Take special note that you should replace `your-api-secret` with the secret you obtained in item two of the pre-requisites.
120+
Take special note that you should replace `your-api-credentials` with the secret you obtained in item two of the pre-requisites.
124121

125122
### Issues &amp; Comments
126123
Please leave all comments, bugs, requests, and issues on the Issues page. We'll respond to your request ASAP!

0 commit comments

Comments
 (0)