Skip to content

Commit

Permalink
PHP: Update Readme template (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Mar 27, 2024
1 parent 3b9544e commit cb0da4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codegen/Templates/php/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,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 = 'None';
$request->text_location = CodeLocation::None;

$api = new BarcodeApi(null, $config);
$response = $api->GetBarCodeGenerate($request);
Expand Down

0 comments on commit cb0da4b

Please sign in to comment.