2017 © Pedro Peláez
 

library n11client

n11.com web service client

image

eray-akartuna/n11client

n11.com web service client

  • Saturday, March 4, 2017
  • by erayakartuna
  • Repository
  • 3 Watchers
  • 7 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

N11 Web Servis

Bu kütüphane ile n11 web servislerine erişebilirsiniz., (*1)

Ö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., (*2)

Geliştirmek için kodlarınızı n11Client.php içine ekleyebilirsiniz., (*3)

The Versions

04/03 2017

dev-master

9999999-dev

n11.com web service client

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Eray Akartuna

api client soap n11