Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 898 Bytes

Category.md

File metadata and controls

39 lines (29 loc) · 898 Bytes

Kategori işlemleri


1- Init Object for Usage

use ksmylmz\hepsiburada\Hepsiburada;
......
$isTeststage = true;
$hb  = new Hepsiburada({username},{password},{merchantid},$isTestStage);

2- Tüm Kategori Bilgilerini getirme

    $getAllCategoryRequest = new GetAllCategoryRequestmodel();
    $getAllCategoryRequest->leaf = true;
    $getAllCategoryRequest->status = CategoryStatus::active;
    $getAllCategoryRequest->available =true;
    $getAllCategoryRequest->page=0;
    $getAllCategoryRequest->size =500;
    $hb->category->getAllCategories($getAllCategoryRequest);

3- Kategori Özelliklerini getirme

    $categoryID = "123456";
    $hb->category->getCategoryAttributes($categoryID);

4-Kategori Özellik değerlerini getirme

$categoryID = "123456";
$hb->category->getCategoryAttributes($categoryID);