PHP code example of scayle / storefront-api
1. Go to this page and download the library: Download scayle/storefront-api 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/ */
scayle / storefront-api example snippets
# Install the PHP library with Composer
`composer rontClient;
$client = new StorefrontClient([
'apiUrl' => 'https://{{tenant-space}}.storefront.api.scayle.cloud/v1/',
'shopId' => 1001,
'auth' => [
'type' => 'token',
'token' => '{{Access-Token}}',
],
]);