Scorpion2763 adlı üyeden alıntı: mesajı görüntüle
Merhaba,


Ürün listelemek ve listelenen ürünü Aktif Satışlar'a almak için insertAndActivateProduct metodunu inceleyebilirsiniz.
https://www.gittigidiyor.com/api/cor...tivate-product

Eğer hazır yazılmış bir kod arıyorsanız : https://github.com/c0b41/Gittigidiyor
master/src/Gittigidiyor.php > insertProducts fonksiyonu işinize yarayacakır.
[HTTP] Unauthorized in hatası alıyorum yetkisiz diyor. Entegra apisi ile deniyorum acaba sebebi bu mudur? Farklı bir api kullanıcısı mı oluşturmam gerekiyor?

 protected $apiKey,$secretKey,$login,$password,$sign;
    function __construct($apiKey,$secretKey,$login,$password){
      $this->apiKey    = "*********";
      $this->secretKey = "*********";
      $this->login     = "********";
      $this->password  = "********";
    }

public function client($action,array $params,$soap_url){
        $client = new SoapClient($soap_url, array('login' => $this->login, 'password' => $this->password , 'authentication' => SOAP_AUTHENTICATION_BASIC));
        $response = json_decode(json_encode($client->__soapCall($action,$params)),true);
        return $response;
    }