Coder Social home page Coder Social logo

ismail0234 / n11-php-api Goto Github PK

View Code? Open in Web Editor NEW
65.0 9.0 36.0 266 KB

Bu api n11 için yazılmıştır. N11 için yazılmış olan gelişmiş bir php apisi. Ekstra olarak n11 üzerinde mağazanıza gelen siparişleri websitenize aktaracak bir fonksiyonda mevcuttur.

Home Page: https://ismail0234.github.io/n11-php-api/

License: MIT License

PHP 100.00%
n11 php-api n11-php-api n11-soap pazaryeri entegrasyon

n11-php-api's Introduction

ismail0234

n11-php-api's People

Contributors

allcontributors[bot] avatar eminks avatar ismail0234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

n11-php-api's Issues

WebHook Order Service SQLite şişme

Webhook bir sebepten dolayı sqlite üzerinde gereksiz sipariş id numaraları ekleyerek sqlite'ın şişmesine sebebiyet veriyor.

Bu sorun versiyon 1.1.0 üzerinde meydana gelmekte ve incelenmektedir. Versiyon 1.1.1 üzerinde düzeltilecektir.

N11 WebHook için yapılacaklar

N11 üzerinden gelen siparişleri websitelerine aktarımını sağlayacak resmi bir webhook vermediği için kütüphanede yazılmış 1 adet webhook mevcuttur link.

Bu Webhook'un henüz beta aşamasında olduğunu unutmayın!

  • eski siparişler kontrol edilsinmi? fonksiyonu kaldırılacak.
  • Sayfalama algoritması eklenerek sipariş doğruluğu artırılacak
  • Otomatik geçmiş ve gelecek sayfaları tarayarak sipariş doğruluğu artırılacak

webhook

merhaba hocam, webhook'un cronjob ile neden kullanılmaması gerektiğini söyler misiniz. teşekkürler

SaveProduct

Merhaba saveproduct yaparken aşağıda ki hatayı alıyorum nasıl çözebilirim.

Fatal error: Uncaught IS\PazarYeri\N11\Helper\N11Exception: SOAP-ERROR: Encoding: object has no 'attributes' property in /siteadi.com/vendor/ismail0234/n11-php-api/IS/PazarYeri/N11/Helper/Request.php:87 Stack trace: #0 /siteadi.com/vendor/ismail0234/n11-php-api/IS/PazarYeri/N11/Services/ProductService.php(57): IS\PazarYeri\N11\Helper\Request->sendRequest('SaveProduct', Array) #1 [internal function]: IS\PazarYeri\N11\Services\ProductService->SaveProduct(Object(IS\PazarYeri\N11\Helper\Request), Array) #2 /siteadi.com/vendor/ismail0234/n11-php-api/IS/PazarYeri/N11/Helper/BaseCall.php(65): call_user_func_array(Array, Array) #3 /siteadi.com/admin-paneli/controller/urun-duzenle.php(189): IS\PazarYeri\N11\Helper\BaseCall->__call('SaveProduct', Array) #4 /siteadi.com/app/controller/admin-paneli.php(220): require('/home/fatihler....') #5 /home/fatihler.com/entegrasyon.fatihler.c in /siteadi.com/vendor/ismail0234/n11-php-api/IS/PazarYeri/N11/Helper/Request.php on line 87

KULLANIM!!

Entegrasyonu çalıştıramadım kullanım ve kuruluma baktıgımda bişey anlamadım composer kurdum fakat hiç bişey yapamıyorum açamıyorum appserv üzerinden kullanım ve kurulum için detaylı bilgi verirmisiniz

api dil kodlaması

hocam ben kendi yaptığım apiyi kullanıyorum. ama bir sorunum var sürekli başıma bela oluyor. çözemiyorum. fikir almak istedim. sorunum şu. n11 üzerinden herhangi bir sorgulama yaparken bir anda sorgulama yapmayı kesiyor. hata veriyor. apinin başına setlocale ile türkçe dil kodu ekliyorum düzeliyor. ertesi gün yine sorgulama yapmıyor. bu kez eklediğim satırı siliyorum düzeliyor. fikir almak istedim. cevaplarsan memnun olurum.

searchCatalog

N11 searchCatalog diye ürün arama yapabileceğimiz bir aparat çıkarttı ancak API üzerinden yaptığım çalışmada ne yazık ki bir türlü başarılı arama yapamadım. Bu endpointi ekleyebilirseniz sevinirim çünkü bundan sonra katalog sistemine geçen N11 üzerindeki ürünlere aynı HB veya TY gibi fiyat teklifi verebilmemiz bu API endpointine bağlı. Şimdiden teşekkürler.

Resourse not found!

saveProduct sonrası Resource.not.found cevabı alıyorum. Yardımcı olabilecek var mı?

SOAP Oturumu Başarısız

Aynı sorguyu tekrarladığımda SOAP Oturumu başarısız hatası alıyorum bu sorunu nasıl çözebilirim.

ClientStatus kontrolü hakkında

Merhaba,

Herhangi bir service istek attığımda BaseCall __construct() girdiğinden dolayı sürekli client açıyor ?

getCities() isteği için de client açıyor , getTopLevelCategories() için de.

Yaptığınız ClientStatus mantığını anlayamadım.

Ayrıca editörler city , category gibi ifadeleri(magic method algılamıyor).

/**
 * Class N11ClienClass
 * @property-read CategoryService $category
 * @property-read ProductService $product
 * @property-read CityService $city
 * @property-read ShipmentCompanyService $shipmentcompany;
 * @property-read ShipmentService $shipment;
 * @property-read ProductSellingService $selling
 * @property-read ProductStockService $stock
 * @property-read OrderService $order
 * @property-read WebHookService $webhook
 * @package App\Classes\N11Service
 */
class N11ClienClass extends N11Client
{
}

Clientleri bu şekilde bir class üzerinden açarlarsa sorunları da düzelir.

Edit: Sorun PHPDoc verilmesinden dolayı oluşuyor.Metotların bazıları 500 hatasına dönüyor.

$client parametresi geçirdiğiniz fonksiyonlarda $client = null yapıp kalıtım yaparsam sorun çözülüyor. Ama parametre olarak $client vermenizi anlamadım

Merhaba Ürün yüklemeyi denerken SOAP-ERROR: Encoding: object has no 'images' property hatası alıyorum.

$client->product->SaveProduct(
array(
'productSellerCode' => "test",
'title' => "test1",
'subtitle' => "test1",
'description' => "11",
'attributes' => array(
'attribute' => array(

    )
  ),
  'category' => array(
    'id' => "11"
  ),
  'price' => 34,
  'currencyType' => '1',
  'images' => [
    'image' => [
      array(
      'url' => 'http://www.ewsyonetim.com/product-images-resized/2419_1.jpg',
      'order' => '1',
      )
      ]
    ],
  'saleStartDate' => '',
  'saleEndDate' => '',
  'productionDate' => '',
  'expirationDate' => '',
  'productCondition' => 1,
  'preparingDay' => 2,
  'discount' => array(
    'startDate' => '',
    'endDate' => '',
    'type' => '',
    'value' => '',
  ),
  'shipmentTemplate' => "Ews",
  'stockItems' => array(
    'stockItem' => array(
      'attributes' => array(
        'attribute' => array(
          'name' => '',
          'value' => '',
        )
      ),
        'bundle' => 'false',
        'mpn' => "1",
        'gtin' => "1",
        'oem' => '',
        'quantity' => "1",
        'n11CatalogId' => '',
        'sellerStockCode' => 'test',
        'optionPrice' => "",
      )
    ),
  'domestic' => 'false',
  'specialProductInfoList' => array(
    'specialProductInfo' => array(
      'key' => '?',
      'value' => '?',
    )
  ),
  'approvalStatus' => '1',
  'groupAttribute' => '',
  'groupItemCode' => '',
  'itemName' => '',
  'unitInfo' => '',
  'maxPurchaseQuantity' => "111",
  )

));

Laravel gereksinimleri

Problem 1
- Root composer.json requires illuminate/support ^7.0, found illuminate/support[v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.

bu paket "laravel/framework": "^8.12", içine gönderilmiştir versiyonu yükseltilmesi gerekiyor.

Hesap Ekstresi

Öncelikle Merhaba . ben hesap ektresini nasıl çekebilirim n11 api dökümananında "GetSapBankStatementEInvoice" fonksiyonu kullanılıyor yazıyor ancak soap bağlantısını yapamadım http not found hatası alıyorum hızlı cevap verebilirseniz çok sevinirim şimdiden çok teşekkür ediyorum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.