KarincaServer adlı üyeden alıntı: mesajı görüntüle
Selamlar,

Arkadaşlar " https://github.com/ismail0234/trendyol-php-api " kütüphane üzerinden APİ Entegrasyonu sağlayarak ürün gönderimi yapmaya çalışıyorum.

Hazırladığım array
$json = [
            "items" => [
                  [
                      "barcode" => $product->stocks->sku,
                      "title" => "$product->name",
                      "productMainId" => "$productMainId",
                      "brandId" => $product->trendyolBrand->trend_brand_id,
                      "categoryId" => $product->trendyolCategory->trend_cat_id,
                      "quantity" => $product->stocks->qty,
                      "stockCode" => "$productMainId",
                      "dimensionalWeight" => $product->est_shipping_days,
                      "description" => "$product->description",
                      "currencyType" => "TRY",
                      "listPrice" => $list_price,
                      "salePrice" => $sale_price,
                      "vatRate" => $product->taxes->tax,
                      "cargoCompanyId" => $this->config->cargo_id,
                      "images" => $images,
                      "attributes" => $attribute
                  ]
            ]
        ];
JSON Olarak çıktısı :

{
    "items": [
    {
        "barcode": "86814381909941-ERS",
        "title": "Test",
        "productMainId": "TESTURUNYUKLEME",
        "brandId": 4670,
        "categoryId": 1587,
        "quantity": 50,
        "stockCode": "TESTURUNYUKLEME",
        "dimensionalWeight": 2,
        "description": "<p>A\u00e7\u0131klama<\/p>",
        "currencyType": "TRY",
        "listPrice": "11500",
        "salePrice": "9500",
        "vatRate": 18,
        "cargoCompanyId": 3,
        "images": [{"url": "https:\/\/alanadi.com\/public\/uploads\/all\/UrLeCIUVof2HAGNys8FuD1lGKpyTTisZKQLwHdVS.jpg"}],
        "attributes": [
            {"attributeId": 47, "attributeValueId": "Beyaz"},
            {"attributeId": 28, "attributeValueId": 258},
            {"attributeId": 168, "attributeValueId": 1949},
            {"attributeId": 184,"attributeValueId": 2087},
            {"attributeId": 232, "attributeValueId": 4014},
            {"attributeId": 301, "attributeValueId": 3008},
            {"attributeId": 306, "attributeValueId": 3092},
            {"attributeId": 249,"attributeValueId": 3376},
            {"attributeId": 329, "attributeValueId": 19467},
            {"attributeId": 290, "attributeValueId": 4183},
            {"attributeId": 354, "attributeValueId": 7878},
            {"attributeId": 426,"attributeValueId": 19354}
        ]
    }
    ]
}
Json olarak da Array olarakda servise gönderdiğimde dönen hata aşağıdadır.


Konu hakkında bilgisi olan var mıdır?
Hocam title kısmını o şekilde gönderemezsiniz