Skip to content

Commit

Permalink
Release 24.3 (#66)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ivankamkin authored Mar 25, 2024
1 parent cfbef84 commit b50dd25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,15 +49,16 @@ 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');
$config->setClientSecret('Client Secret from https://dashboard.aspose.cloud/applications');

$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);
Expand Down
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Aspose/BarCode/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Configuration implements JsonSerializable
*
* @var string
*/
protected $clientVersion = '24.2.0';
protected $clientVersion = '24.3.0';

/**
* ClientId for API
Expand Down

0 comments on commit b50dd25

Please sign in to comment.