bluntk/pazarama

此包最新版本(v1)没有可用的许可证信息。

Pazarama PHP API

v1 2022-12-14 11:50 UTC

This package is auto-updated.

Last update: 2024-09-21 20:38:40 UTC


README

Pazarama PHP API

Kurulum

composer require bluntk/pazarama

Ayarlar

$pazarama = new \bluntk\Pazarama([
            'api_key' => $this->apiKey,
            'api_secret' => $this->apiSecret
]);

Kategori Ağacı

$categoryTree = $pazarama->categories();

Markalar

$brands = $pazarama->brands(page: 1, size: 10);

具有属性的类别

$categoryWithAttributes = $pazarama->categoryWithAttributes($id);

交货地址

$sellerDeliveries = $pazarama->sellerDeliveries();

城市

$cities = $pazarama->cities();

添加产品

$data = [
        'Name' => 'Name',
        'DisplayName' => 'Display Name',
        'Description' => 'Description',
        'BrandId' => 'Marka ID',
        'Desi' => 1,
        'Code' => 'Barkod',
        'GroupCode' => 'Grup Kodu', // Gruplandırma için ana barkod
        'StockCount' => 'Stok sayısı',
        'VatRate' => 'Vergi Oranı',
        'ListPrice' => 'Liste Fiyatı',
        'SalePrice' => 'Satış Fiyatı',
        'CategoryId' => 'Kategori ID',
        'images' => [
            ['imageurl' => 'görsel url'],
            ['imageurl' => 'görsel url2']
        ],
        'attributes' => [
            [
                'attributeId' => 'AttributeID',
                'attributeValueId' => 'Attribute Value ID',
            ],
           [
                'attributeId' => 'AttributeID',
                'attributeValueId' => 'Attribute Value ID',
            ],
        ],
    ];
$product = $pazarama->createProduct();

批量请求查询

$pazarama->productBatchRequest($batchRequestId);

您还可以在类内部查看其他服务。使用方法相同。要发送的参数与pazarama API文档中所述相同。