PHP code example of theshopdev / api-client
1. Go to this page and download the library: Download theshopdev/api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
theshopdev / api-client example snippets
$data = $this->getConnector()->send(new ProductListRequest(
limit: 8,
offset: 0
))->data;
$data = $this->getConnector()->sendMultiple([
'pages' => new ProductListRequest(
limit: 8,
offset: 0
),
'categories' => new ProductListRequest(
limit: 8,
offset: 0
)
]);