PHP code example of esc-company / petdesign-api-client
1. Go to this page and download the library: Download esc-company/petdesign-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/ */
esc-company / petdesign-api-client example snippets
// Goods
$good = (new Good({api_key}))->find(30);
$goods = (new Good({api_key}))->show(false)->get();
$goods = (new Good({api_key}))->page(1)->get();
$goods = (new Good({api_key}))->from('2019-09-01')->get();
// Categories
$categories = (new Category({api_key}))->get();
$categories = (new Category({api_key}))->byCat()->get();
$catCategory = (new Category({api_key}))->find(Category::catCode);