Skip to content

Commit 1fc9302

Browse files
Ivan KamkinIvan Kamkin
authored andcommitted
Update version
Format code
1 parent 562ed9d commit 1fc9302

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+263
-192
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fix: init
2626
.PHONY: after-gen
2727
after-gen: fix insert-example
2828
./scripts/annotate-deprecated.bash
29-
@dart format .
29+
dart format .
3030

3131
.PHONY: insert-example
3232
insert-example:

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Dart test](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml)
44

55
- API version: 4.0
6-
- SDK version: 4.25.6
6+
- SDK version: 4.25.7
77

88
## SDK and API Version Compatibility:
99

@@ -39,7 +39,7 @@ Add this dependency to your *pubspec.yaml*:
3939

4040
```yaml
4141
dependencies:
42-
aspose_barcode_cloud: 4.25.6
42+
aspose_barcode_cloud: 4.25.7
4343
```
4444
4545
## Sample usage
@@ -57,19 +57,23 @@ import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';
5757
Future<void> main() async {
5858
final fileName = "test_data${Platform.pathSeparator}qr.png";
5959

60-
final client = ApiClient(Configuration(
61-
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
62-
clientSecret:
63-
"Client Secret from https://dashboard.aspose.cloud/applications",
64-
// For testing only
65-
accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"],
66-
));
60+
final client = ApiClient(
61+
Configuration(
62+
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
63+
clientSecret:
64+
"Client Secret from https://dashboard.aspose.cloud/applications",
65+
// For testing only
66+
accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"],
67+
),
68+
);
6769

6870
final genApi = GenerateApi(client);
6971
final scanApi = ScanApi(client);
7072
// Generate image with barcode
71-
final Uint8List generated =
72-
await genApi.generate(EncodeBarcodeType.QR, "text");
73+
final Uint8List generated = await genApi.generate(
74+
EncodeBarcodeType.QR,
75+
"text",
76+
);
7377

7478
// Save generated image to file
7579
File(fileName).writeAsBytesSync(generated);
@@ -115,10 +119,10 @@ Class | Method | HTTP request | Description
115119
*GenerateApi* | [**generate**](doc/api/GenerateApi.md#generate) | **GET** /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string.
116120
*GenerateApi* | [**generateBody**](doc/api/GenerateApi.md#generatebody) | **POST** /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format.
117121
*GenerateApi* | [**generateMultipart**](doc/api/GenerateApi.md#generatemultipart) | **POST** /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form.
118-
*RecognizeApi* | [**recognize**](doc/api/RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server using GET requests with parameters in route and query string.
122+
*RecognizeApi* | [**recognize**](doc/api/RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use &#x60;recognize-body&#x60; or &#x60;recognize-multipart&#x60; endpoints instead.
119123
*RecognizeApi* | [**recognizeBase64**](doc/api/RecognizeApi.md#recognizebase64) | **POST** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
120124
*RecognizeApi* | [**recognizeMultipart**](doc/api/RecognizeApi.md#recognizemultipart) | **POST** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form.
121-
*ScanApi* | [**scan**](doc/api/ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string.
125+
*ScanApi* | [**scan**](doc/api/ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use &#x60;scan-body&#x60; or &#x60;scan-multipart&#x60; endpoints instead.
122126
*ScanApi* | [**scanBase64**](doc/api/ScanApi.md#scanbase64) | **POST** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
123127
*ScanApi* | [**scanMultipart**](doc/api/ScanApi.md#scanmultipart) | **POST** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form.
124128

doc/api/RecognizeApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ All URIs are relative to *https://api.aspose.cloud/v4.0*
99

1010
Method | HTTP request | Description
1111
------ | ------------ | -----------
12-
[**recognize**](RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server using GET requests with parameters in route and query string.
12+
[**recognize**](RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use &#x60;recognize-body&#x60; or &#x60;recognize-multipart&#x60; endpoints instead.
1313
[**recognizeBase64**](RecognizeApi.md#recognizeBase64) | **POST** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
1414
[**recognizeMultipart**](RecognizeApi.md#recognizeMultipart) | **POST** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form.
1515

1616

1717
# **recognize**
1818
> BarcodeResponseList recognize(barcodeType, fileUrl, recognitionMode, recognitionImageKind)
1919
20-
Recognize barcode from file on server using GET requests with parameters in route and query string.
20+
Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.
2121

2222
### Parameters
2323

doc/api/ScanApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ All URIs are relative to *https://api.aspose.cloud/v4.0*
99

1010
Method | HTTP request | Description
1111
------ | ------------ | -----------
12-
[**scan**](ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string.
12+
[**scan**](ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use &#x60;scan-body&#x60; or &#x60;scan-multipart&#x60; endpoints instead.
1313
[**scanBase64**](ScanApi.md#scanBase64) | **POST** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
1414
[**scanMultipart**](ScanApi.md#scanMultipart) | **POST** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form.
1515

1616

1717
# **scan**
1818
> BarcodeResponseList scan(fileUrl)
1919
20-
Scan barcode from file on server using GET requests with parameter in query string.
20+
Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
2121

2222
### Parameters
2323

example/main.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';
66
Future<void> main() async {
77
final fileName = "test_data${Platform.pathSeparator}qr.png";
88

9-
final client = ApiClient(Configuration(
10-
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
11-
clientSecret:
12-
"Client Secret from https://dashboard.aspose.cloud/applications",
13-
// For testing only
14-
accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"],
15-
));
9+
final client = ApiClient(
10+
Configuration(
11+
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
12+
clientSecret:
13+
"Client Secret from https://dashboard.aspose.cloud/applications",
14+
// For testing only
15+
accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"],
16+
),
17+
);
1618

1719
final genApi = GenerateApi(client);
1820
final scanApi = ScanApi(client);
1921
// Generate image with barcode
20-
final Uint8List generated =
21-
await genApi.generate(EncodeBarcodeType.QR, "text");
22+
final Uint8List generated = await genApi.generate(
23+
EncodeBarcodeType.QR,
24+
"text",
25+
);
2226

2327
// Save generated image to file
2428
File(fileName).writeAsBytesSync(generated);

lib/src/api/recognize_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RecognizeApi {
1414
final ApiClient _apiClient;
1515

1616
///
17-
/// Recognize barcode from file on server using GET requests with parameters in route and query string.
17+
/// Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use &#x60;recognize-body&#x60; or &#x60;recognize-multipart&#x60; endpoints instead.
1818
///
1919
Future<BarcodeResponseList> recognize(
2020
DecodeBarcodeType barcodeType, String fileUrl,

lib/src/api/scan_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ScanApi {
1414
final ApiClient _apiClient;
1515

1616
///
17-
/// Scan barcode from file on server using GET requests with parameter in query string.
17+
/// Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use &#x60;scan-body&#x60; or &#x60;scan-multipart&#x60; endpoints instead.
1818
///
1919
Future<BarcodeResponseList> scan(String fileUrl) async {
2020
// ignore: prefer_final_locals

lib/src/api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'api_helper.dart';
1010
import 'auth/authentication.dart';
1111

1212
/// Current SDK Version
13-
const SDK_VERSION = "4.25.6";
13+
const SDK_VERSION = "4.25.7";
1414

1515
/// ApiClient is responsible for making HTTP requests to the API.
1616
class ApiClient {

lib/src/configuration.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ class Configuration {
7777
/// Load configuration from environment variables
7878
static Configuration fromEnv({String prefix = ""}) {
7979
final accessToken = Platform.environment["${prefix}ACCESS_TOKEN"];
80-
return Configuration(
81-
accessToken: accessToken,
82-
);
80+
return Configuration(accessToken: accessToken);
8381
}
8482
}

lib/src/http/boundary_characters.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ const List<int> boundaryCharacters = <int>[
7676
119,
7777
120,
7878
121,
79-
122
79+
122,
8080
];

0 commit comments

Comments
 (0)