aspose-barcode-cloud-node 22.7.0 → 22.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/aspose-barcode-cloud-node)
|
|
6
6
|
|
|
7
7
|
+ API version: 3.0
|
|
8
|
-
+ Package version: 22.
|
|
8
|
+
+ Package version: 22.9.0
|
|
9
9
|
|
|
10
10
|
## Demo applications
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ npm install aspose-barcode-cloud-node --save
|
|
|
35
35
|
|
|
36
36
|
### Sample usage
|
|
37
37
|
|
|
38
|
-
The examples below show how your application have to generate
|
|
38
|
+
The examples below show how your application have to generate QR code and save it on local storage:
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
41
|
const fs = require('fs');
|
|
@@ -43,16 +43,18 @@ const Barcode = require('aspose-barcode-cloud-node');
|
|
|
43
43
|
|
|
44
44
|
const config = new Barcode.Configuration(
|
|
45
45
|
'Client Id from https://dashboard.aspose.cloud/applications',
|
|
46
|
-
'Client Secret from https://dashboard.aspose.cloud/applications'
|
|
46
|
+
'Client Secret from https://dashboard.aspose.cloud/applications',
|
|
47
|
+
null,
|
|
48
|
+
process.env['TEST_CONFIGURATION_ACCESS_TOKEN']
|
|
47
49
|
);
|
|
48
50
|
|
|
49
51
|
async function generateBarcode(api) {
|
|
50
52
|
const request = new Barcode.GetBarcodeGenerateRequest(
|
|
51
|
-
Barcode.EncodeBarcodeType.
|
|
53
|
+
Barcode.EncodeBarcodeType.QR,
|
|
52
54
|
'Aspose.BarCode for Cloud Sample');
|
|
53
55
|
const oneBarcode = await api.getBarcodeGenerate(request);
|
|
54
56
|
|
|
55
|
-
const fileName = '
|
|
57
|
+
const fileName = 'QR.png'
|
|
56
58
|
fs.writeFileSync(fileName, oneBarcode.body);
|
|
57
59
|
|
|
58
60
|
return fileName;
|
|
@@ -61,7 +63,9 @@ async function generateBarcode(api) {
|
|
|
61
63
|
async function recognizeBarcode(api, fileName) {
|
|
62
64
|
const request = new Barcode.PostBarcodeRecognizeFromUrlOrContentRequest();
|
|
63
65
|
request.image = fs.readFileSync(fileName);
|
|
66
|
+
request.type = Barcode.DecodeBarcodeType.QR;
|
|
64
67
|
request.preset = Barcode.PresetType.HighPerformance;
|
|
68
|
+
request.fastScanOnly = true;
|
|
65
69
|
|
|
66
70
|
const result = await api.postBarcodeRecognizeFromUrlOrContent(request);
|
|
67
71
|
|
|
@@ -101,7 +105,7 @@ All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed und
|
|
|
101
105
|
+ [**Documentation**](https://docs.aspose.cloud/barcode/)
|
|
102
106
|
+ [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
|
|
103
107
|
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
|
|
104
|
-
+ [**Blog**](https://blog.aspose.cloud/
|
|
108
|
+
+ [**Blog**](https://blog.aspose.cloud/categories/aspose.barcode-cloud-product-family/)
|
|
105
109
|
|
|
106
110
|
## Documentation for API Endpoints
|
|
107
111
|
|