Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.42 KB

CATEGORIES.md

File metadata and controls

65 lines (41 loc) · 1.42 KB

Categories

The categories creation is simple way made.

Creating a Category

// ...

/** @var \SkyHub\Api\Handler\Request\Catalog\CategoryHandler $requestHandler */
$requestHandler = $api->category();

/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->create('category001', 'Category 001');

// ...

Updating a Category

// ...

/** @var \SkyHub\Api\Handler\Request\Catalog\CategoryHandler $requestHandler */
$requestHandler = $api->category();

/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->update('category001', 'Updated Category 001 Name');

// ...

Removing a Category

// ...

/** @var \SkyHub\Api\Handler\Request\Catalog\CategoryHandler $requestHandler */
$requestHandler = $api->category();

/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->delete('category001');

// ...

Getting a List of Categories

// ...

/** @var \SkyHub\Api\Handler\Request\Catalog\CategoryHandler $requestHandler */
$requestHandler = $api->category();

/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->categories();

// ...

For more information, access the official_documentation.

Back

Continue: Orders