From b50dd2561d5b706dd4d94297570236a00e563f10 Mon Sep 17 00:00:00 2001 From: ivankamkin <109517020+ivankamkin@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:44:53 +0500 Subject: [PATCH] Release 24.3 (#66) * Version updated Example code changed to don't show text on QR * Use CodeLocation::None (#67) --------- Co-authored-by: Denis Averin <59285247+Denis-Averin@users.noreply.github.com> --- README.md | 5 +++-- index.php | 3 ++- src/Aspose/BarCode/Configuration.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb20624..6b23d7e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/aspose/barcode-cloud-php/php)](https://packagist.org/packages/aspose/barcode-cloud-php) - API version: 3.0 -- Package version: 24.2.0 +- Package version: 24.3.0 - Supported PHP versions: ">=7.4 || >=8.0" ## Demo applications @@ -49,8 +49,8 @@ require __DIR__ . '/vendor/autoload.php'; ```php use Aspose\BarCode\Configuration; use Aspose\BarCode\BarcodeApi; -use Aspose\BarCode\Model\EncodeBarcodeType; use Aspose\BarCode\Requests\GetBarcodeGenerateRequest; +use Aspose\BarCode\Model\{EncodeBarcodeType, CodeLocation}; $config = new Configuration(); $config->setClientId('Client Id from https://dashboard.aspose.cloud/applications'); @@ -58,6 +58,7 @@ $config->setClientSecret('Client Secret from https://dashboard.aspose.cloud/appl $request = new GetBarcodeGenerateRequest(EncodeBarcodeType::QR, 'PHP SDK Test'); $request->format = 'png'; +$request->text_location = CodeLocation::None; $api = new BarcodeApi(null, $config); $response = $api->GetBarCodeGenerate($request); diff --git a/index.php b/index.php index a25a9a4..3964b28 100644 --- a/index.php +++ b/index.php @@ -6,8 +6,8 @@ use Aspose\BarCode\Configuration; use Aspose\BarCode\BarcodeApi; -use Aspose\BarCode\Model\EncodeBarcodeType; use Aspose\BarCode\Requests\GetBarcodeGenerateRequest; +use Aspose\BarCode\Model\{EncodeBarcodeType, CodeLocation}; $config = new Configuration(); $config->setClientId('ClientId from https://dashboard.aspose.cloud/applications'); @@ -18,6 +18,7 @@ $request = new GetBarcodeGenerateRequest(EncodeBarcodeType::QR, 'PHP SDK Test'); $request->format = 'png'; +$request->text_location = CodeLocation::None; $api = new BarcodeApi(null, $config); $response = $api->GetBarCodeGenerate($request); diff --git a/src/Aspose/BarCode/Configuration.php b/src/Aspose/BarCode/Configuration.php index c33a68c..2b61ccd 100644 --- a/src/Aspose/BarCode/Configuration.php +++ b/src/Aspose/BarCode/Configuration.php @@ -23,7 +23,7 @@ class Configuration implements JsonSerializable * * @var string */ - protected $clientVersion = '24.2.0'; + protected $clientVersion = '24.3.0'; /** * ClientId for API