Content-Length: 255897 | pFad | http://github.com/erayakartuna/n11-php/blob/master/README.md

9B n11-php/README.md at master · erayakartuna/n11-php · GitHub
Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.67 KB

README.md

File metadata and controls

56 lines (49 loc) · 1.67 KB

N11 Web Servis

Bu kütüphane ile n11 web servislerine erişebilirsiniz.

###Örnek Kod

$client = new n11Client();

// App key ve app secretları giriyoruz.
$client->auth(array('appKey' => 'xxxx-xxxx-xxxx','appSecret' => 'xxxxxxx'));

$categories = $client->getTopLevelCategories(); //Kategorileri Çekiyoruz
$cities = $client->getCities(); //İl listesine ulaşıyoruz.

//Ürün ekleme - daha fazlası için n11 dökümanına bakabilirsiniz.
$client->saveProduct([
            'productSellerCode' => 'exp-111',
            'title' => 'Test Product',
            'subtitle' => 'Web service test ',
            'description' => 'test product detail',
            'attributes' =>
                [
                    'attribute' => Array()
                ],
            'category' =>
                [
                    'id' => 1000038
                ],
            'price' => 0.99,
            'currencyType' => 'TL',
            'images' =>
                [
                    'image' =>
                        [
                        ]
                ],
            'saleStartDate' => '',
            'saleEndDate' => '',
            'productionDate' => '',
            'expirationDate' => '',
            'productCondition' => '1',
            'preparingDay' => '3',
            'discount' => 10,
            'shipmentTemplate' => 'Kapıda Ödeme',
            'stockItems' =>
                [
                    'stockItem' =>
                        [
                        ]
                ]
        ]);

Yazılan diğer metodları görmek için client/Gateway.php dosyasını inceleyebilirsiniz.

Geliştirmek için kodlarınızı n11Client.php içine ekleyebilirsiniz.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/erayakartuna/n11-php/blob/master/README.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy