Skip to content

Commit 2704d88

Browse files
authored
Release 20.11 (#7)
1 parent c09868b commit 2704d88

7 files changed

Lines changed: 60 additions & 60 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.BarCode Cloud SDK for Java
22

33
- API version: 3.0
4-
- SDK version: 20.10.0
4+
- SDK version: 20.11.0
55

66
[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/cloud) is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
77

@@ -16,7 +16,7 @@ Building the API client library requires:
1616

1717
## Prerequisites
1818

19-
To use Aspose.BarCode Cloud SDK for Java you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
19+
To use Aspose.BarCode Cloud SDK for Java you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create Client Id and Client Secret at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
2020

2121
## Installation
2222

@@ -56,7 +56,7 @@ Add this dependency to your project's POM:
5656
<dependency>
5757
<groupId>com.aspose</groupId>
5858
<artifactId>aspose-barcode-cloud</artifactId>
59-
<version>20.10.0</version>
59+
<version>20.11.0</version>
6060
<scope>compile</scope>
6161
</dependency>
6262
```
@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
- `target/aspose-barcode-cloud-20.10.0.jar`
74+
- `target/aspose-barcode-cloud-20.11.0.jar`
7575
- `target/lib/*.jar`
7676

7777
## Getting Started
@@ -91,8 +91,8 @@ public class BarcodeApiExample {
9191

9292
public static void main(String[] args) {
9393
ApiClient client = new ApiClient(
94-
"App SID from https://dashboard.aspose.cloud/#/apps",
95-
"App Key from https://dashboard.aspose.cloud/#/apps"
94+
"Client Id from https://dashboard.aspose.cloud/applications",
95+
"Client Secret from https://dashboard.aspose.cloud/applications"
9696
);
9797

9898
BarcodeApi api = new BarcodeApi(client);

docs/BarcodeApi.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public class Main {
3333
public static void main(String[] args) {
3434

3535
ApiClient client = new ApiClient(
36-
"appSid",
37-
"appKey"
36+
"Client Id from https://dashboard.aspose.cloud/applications",
37+
"Client Secret from https://dashboard.aspose.cloud/applications"
3838
);
3939

4040
BarcodeApi api = new BarcodeApi(client);
@@ -115,8 +115,8 @@ public class Main {
115115
public static void main(String[] args) {
116116

117117
ApiClient client = new ApiClient(
118-
"appSid",
119-
"appKey"
118+
"Client Id from https://dashboard.aspose.cloud/applications",
119+
"Client Secret from https://dashboard.aspose.cloud/applications"
120120
);
121121

122122
BarcodeApi api = new BarcodeApi(client);
@@ -197,8 +197,8 @@ public class Main {
197197
public static void main(String[] args) {
198198

199199
ApiClient client = new ApiClient(
200-
"appSid",
201-
"appKey"
200+
"Client Id from https://dashboard.aspose.cloud/applications",
201+
"Client Secret from https://dashboard.aspose.cloud/applications"
202202
);
203203

204204
BarcodeApi api = new BarcodeApi(client);
@@ -277,8 +277,8 @@ public class Main {
277277
public static void main(String[] args) {
278278

279279
ApiClient client = new ApiClient(
280-
"appSid",
281-
"appKey"
280+
"Client Id from https://dashboard.aspose.cloud/applications",
281+
"Client Secret from https://dashboard.aspose.cloud/applications"
282282
);
283283

284284
BarcodeApi api = new BarcodeApi(client);
@@ -326,8 +326,8 @@ public class Main {
326326
public static void main(String[] args) {
327327

328328
ApiClient client = new ApiClient(
329-
"appSid",
330-
"appKey"
329+
"Client Id from https://dashboard.aspose.cloud/applications",
330+
"Client Secret from https://dashboard.aspose.cloud/applications"
331331
);
332332

333333
BarcodeApi api = new BarcodeApi(client);
@@ -412,8 +412,8 @@ public class Main {
412412
public static void main(String[] args) {
413413

414414
ApiClient client = new ApiClient(
415-
"appSid",
416-
"appKey"
415+
"Client Id from https://dashboard.aspose.cloud/applications",
416+
"Client Secret from https://dashboard.aspose.cloud/applications"
417417
);
418418

419419
BarcodeApi api = new BarcodeApi(client);
@@ -465,8 +465,8 @@ public class Main {
465465
public static void main(String[] args) {
466466

467467
ApiClient client = new ApiClient(
468-
"appSid",
469-
"appKey"
468+
"Client Id from https://dashboard.aspose.cloud/applications",
469+
"Client Secret from https://dashboard.aspose.cloud/applications"
470470
);
471471

472472
BarcodeApi api = new BarcodeApi(client);

docs/FileApi.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class Main {
3131
public static void main(String[] args) {
3232

3333
ApiClient client = new ApiClient(
34-
"appSid",
35-
"appKey"
34+
"Client Id from https://dashboard.aspose.cloud/applications",
35+
"Client Secret from https://dashboard.aspose.cloud/applications"
3636
);
3737

3838
FileApi api = new FileApi(client);
@@ -83,8 +83,8 @@ public class Main {
8383
public static void main(String[] args) {
8484

8585
ApiClient client = new ApiClient(
86-
"appSid",
87-
"appKey"
86+
"Client Id from https://dashboard.aspose.cloud/applications",
87+
"Client Secret from https://dashboard.aspose.cloud/applications"
8888
);
8989

9090
FileApi api = new FileApi(client);
@@ -132,8 +132,8 @@ public class Main {
132132
public static void main(String[] args) {
133133

134134
ApiClient client = new ApiClient(
135-
"appSid",
136-
"appKey"
135+
"Client Id from https://dashboard.aspose.cloud/applications",
136+
"Client Secret from https://dashboard.aspose.cloud/applications"
137137
);
138138

139139
FileApi api = new FileApi(client);
@@ -182,8 +182,8 @@ public class Main {
182182
public static void main(String[] args) {
183183

184184
ApiClient client = new ApiClient(
185-
"appSid",
186-
"appKey"
185+
"Client Id from https://dashboard.aspose.cloud/applications",
186+
"Client Secret from https://dashboard.aspose.cloud/applications"
187187
);
188188

189189
FileApi api = new FileApi(client);
@@ -234,8 +234,8 @@ public class Main {
234234
public static void main(String[] args) {
235235

236236
ApiClient client = new ApiClient(
237-
"appSid",
238-
"appKey"
237+
"Client Id from https://dashboard.aspose.cloud/applications",
238+
"Client Secret from https://dashboard.aspose.cloud/applications"
239239
);
240240

241241
FileApi api = new FileApi(client);

docs/FolderApi.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class Main {
3131
public static void main(String[] args) {
3232

3333
ApiClient client = new ApiClient(
34-
"appSid",
35-
"appKey"
34+
"Client Id from https://dashboard.aspose.cloud/applications",
35+
"Client Secret from https://dashboard.aspose.cloud/applications"
3636
);
3737

3838
FolderApi api = new FolderApi(client);
@@ -82,8 +82,8 @@ public class Main {
8282
public static void main(String[] args) {
8383

8484
ApiClient client = new ApiClient(
85-
"appSid",
86-
"appKey"
85+
"Client Id from https://dashboard.aspose.cloud/applications",
86+
"Client Secret from https://dashboard.aspose.cloud/applications"
8787
);
8888

8989
FolderApi api = new FolderApi(client);
@@ -130,8 +130,8 @@ public class Main {
130130
public static void main(String[] args) {
131131

132132
ApiClient client = new ApiClient(
133-
"appSid",
134-
"appKey"
133+
"Client Id from https://dashboard.aspose.cloud/applications",
134+
"Client Secret from https://dashboard.aspose.cloud/applications"
135135
);
136136

137137
FolderApi api = new FolderApi(client);
@@ -179,8 +179,8 @@ public class Main {
179179
public static void main(String[] args) {
180180

181181
ApiClient client = new ApiClient(
182-
"appSid",
183-
"appKey"
182+
"Client Id from https://dashboard.aspose.cloud/applications",
183+
"Client Secret from https://dashboard.aspose.cloud/applications"
184184
);
185185

186186
FolderApi api = new FolderApi(client);
@@ -228,8 +228,8 @@ public class Main {
228228
public static void main(String[] args) {
229229

230230
ApiClient client = new ApiClient(
231-
"appSid",
232-
"appKey"
231+
"Client Id from https://dashboard.aspose.cloud/applications",
232+
"Client Secret from https://dashboard.aspose.cloud/applications"
233233
);
234234

235235
FolderApi api = new FolderApi(client);

docs/StorageApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class Main {
3030
public static void main(String[] args) {
3131

3232
ApiClient client = new ApiClient(
33-
"appSid",
34-
"appKey"
33+
"Client Id from https://dashboard.aspose.cloud/applications",
34+
"Client Secret from https://dashboard.aspose.cloud/applications"
3535
);
3636

3737
StorageApi api = new StorageApi(client);
@@ -77,8 +77,8 @@ public class Main {
7777
public static void main(String[] args) {
7878

7979
ApiClient client = new ApiClient(
80-
"appSid",
81-
"appKey"
80+
"Client Id from https://dashboard.aspose.cloud/applications",
81+
"Client Secret from https://dashboard.aspose.cloud/applications"
8282
);
8383

8484
StorageApi api = new StorageApi(client);
@@ -126,8 +126,8 @@ public class Main {
126126
public static void main(String[] args) {
127127

128128
ApiClient client = new ApiClient(
129-
"appSid",
130-
"appKey"
129+
"Client Id from https://dashboard.aspose.cloud/applications",
130+
"Client Secret from https://dashboard.aspose.cloud/applications"
131131
);
132132

133133
StorageApi api = new StorageApi(client);
@@ -176,8 +176,8 @@ public class Main {
176176
public static void main(String[] args) {
177177

178178
ApiClient client = new ApiClient(
179-
"appSid",
180-
"appKey"
179+
"Client Id from https://dashboard.aspose.cloud/applications",
180+
"Client Secret from https://dashboard.aspose.cloud/applications"
181181
);
182182

183183
StorageApi api = new StorageApi(client);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-barcode-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-barcode-cloud</name>
8-
<version>20.10.0</version>
8+
<version>20.11.0</version>
99
<url>https://www.aspose.cloud/</url>
1010
<description>Aspose.BarCode Cloud SDK for Java</description>
1111
<scm>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
public class ApiClient {
6363

6464
public final String apiVersion = "v3.0";
65-
public final String clientVersion = "20.10.0";
65+
public final String clientVersion = "20.11.0";
6666
private String baseUrl = "https://api.aspose.cloud";
67-
private String appSid;
68-
private String appKey;
67+
private String clientId;
68+
private String clientSecret;
6969
private boolean debugging = false;
7070
private final Map<String, String> defaultHeaderMap = new HashMap<>();
7171
private String tempFolderPath = null;
@@ -85,17 +85,17 @@ public class ApiClient {
8585
private HttpLoggingInterceptor loggingInterceptor;
8686
private String accessToken;
8787

88-
public ApiClient(String appSid, String appKey, String baseUrl) {
88+
public ApiClient(String clientId, String clientSecret, String baseUrl) {
8989
this();
90-
this.appSid = appSid;
91-
this.appKey = appKey;
90+
this.clientId = clientId;
91+
this.clientSecret = clientSecret;
9292
if (baseUrl != null) {
9393
this.baseUrl = baseUrl;
9494
}
9595
}
9696

97-
public ApiClient(String appSid, String appKey) {
98-
this(appSid, appKey, null);
97+
public ApiClient(String clientId, String clientSecret) {
98+
this(clientId, clientSecret, null);
9999
}
100100

101101
public ApiClient(String accessToken) {
@@ -114,7 +114,7 @@ protected ApiClient() {
114114
json = new JSON();
115115

116116
// Set default User-Agent.
117-
setUserAgent("Swagger-Codegen/20.10.0/java");
117+
setUserAgent("Swagger-Codegen/20.11.0/java");
118118

119119
addDefaultHeader("x-aspose-client", "java sdk");
120120
addDefaultHeader("x-aspose-client-version", clientVersion);
@@ -1156,8 +1156,8 @@ public void requestToken() throws ApiException {
11561156
RequestBody requestBody =
11571157
new FormEncodingBuilder()
11581158
.addEncoded("grant_type", "client_credentials")
1159-
.addEncoded("client_id", appSid)
1160-
.addEncoded("client_secret", appKey)
1159+
.addEncoded("client_id", clientId)
1160+
.addEncoded("client_secret", clientSecret)
11611161
.build();
11621162

11631163
String url = baseUrl + "/connect/token";

0 commit comments

Comments
 (0)