Я новичок в eBay API. Я поражен за получение категорий того же уровня. Я использую API getCategoriesInfo (Shopping) для получения категорий, но не нашел способа получить категории такого же уровня.
public function getCategories(int $categoryId = -1): Shopping\Types\GetCategoryInfoResponseType
{
$service_params = $this->getServiceParams();
$service_params[ 'siteId' ] = self::SITEIDS[ Cookie::get('GLOBAL-ID') ];
$service = new Shopping\Services\ShoppingService($service_params);
/**
* Create the request object.
*/
$request = new Shopping\Types\GetCategoryInfoRequestType();
$request->CategoryID = (string)$categoryId;
$request->IncludeSelector = 'ChildCategories';
/**
* Send the request.
*/
return $response = $service->getCategoryInfo($request);
}