Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
Added Credential-less use case
  • Loading branch information
Jakiboy committed Jan 29, 2025
1 parent beded7b commit 8f20395
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

/**
* Custom request client class.
* @deprecated
*/
class MyClient extends Client
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions examples/Credential-less/product.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* @author : Jakiboy
* @package : Amazon Product Advertising API Library (v5)
* @version : 1.3.x
* @copyright : (c) 2019 - 2025 Jihad Sinnaour <[email protected]>
* @link : https://jakiboy.github.io/apaapi/
* @license : MIT
*
* This file if a part of Apaapi Lib.
*/

declare(strict_types=1);

include '../src/Autoloader.php';
\apaapi\Autoloader::init();

use Apaapi\includes\Product;

// Init Product
$product = new Product('_ASIN_', '_LOCALE_', '__TAG__');
$data = $product->get(); // Array
var_dump($data);

// Any PR is welcome!
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Apaapi\includes\Rating;

// Init Rating
$rating = new Rating('_ASIN_', '_LOCALE_');
$rating = new Rating('_ASIN_', '_LOCALE_', '__TAG__');
$data = $rating->get(); // Array
var_dump($data);

Expand Down

0 comments on commit 8f20395

Please sign in to comment.