Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 804 Bytes

Brand.md

File metadata and controls

39 lines (30 loc) · 804 Bytes

BrandClient

Client initialization

To see example of initialization, please look at Implementation part of our README

Get list of all brands

Method returns BrandIterator containing Brand entity.

use MpApiClient\Common\Interfaces\BrandClientInterface;

/** @var BrandClientInterface $brandClient */
$brands = $brandClient->list();
echo json_encode($brands, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);

Example above prints out

[
  {
    "brand_id": "3M",
    "title": "3M"
  },
  {
    "brand_id": "AKASA",
    "title": "Akasa"
  },
  {
    "brandId": "ZYXEL",
    "title": "Zyxel"
  },
  ...
]

See more examples here