for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace codingFive0\octadesk;
class Product extends Octadesk
{
public function __construct($accToken)
$this->setAccesToken($accToken);
parent::__construct();
}
public function findProducts(string $keywords = null, bool $onlyEnabledItems = true, int $page = 1)
$this->request(
"GET",
"products/search",
[
"keywords" => $keywords,
"onlyEnabledItems" => $onlyEnabledItems,
"page" => $page,
"asSuggestion" => true
]
);
return $this;
public function createProduct()
$body = [
$body
"id" => "string",
"isEnabled" => true,
"sku" => "string",
"productGroup" => [
"name" => "string",
"dateCreation" => "2020-04-30T17:40:26.236Z",
"description" => "string",
"fields" => [
"string"
],
"products" => [
null
"members" => [
"code" => "string",
"value" => []
"publicMembers" => [
"thumbUrl" => "string"
];