Gittigidiyorda mağazaya ait ürünleri listeliyorum.
Bu listeleme sonucu gelen item ve product id değerleri aşağıdaki gibi
[itemId] => 260[productId] => 512562191fakat ben bu ürünün detayını çekmek istediğimde
[errorId] => 304[errorCode] => [GG-API-ERROR_304][message] => Size ait (260) itemId li bir ürün bulunmamaktadır.[viewMessage] => Ürün bulunamadı.Şeklinde Hata alıyorum.
Kodlarım Aşağıdaki Gibidir.
$api_key = 'xxxxxxxxxxxxxx';
$secret_key = 'yyyyyyyyyyyyy';
list($usec, $sec) = explode(" ", microtime());
$time = round(((float)$usec + (float)$sec) * 100) . '0';
$sign = md5($api_key . $secret_key . $time);
$soapClient = new \SoapClient('https://dev.gittigidiyor.com:8443/listingapi/ws/IndividualProductService?wsdl', array(
'trace' => 1,
'exceptions' => true,
'login' => 'aaaaaaaaaa',
'password' => 'bbbbbbbbbbbbbbbb',
'authentication' => SOAP_AUTHENTICATION_BASIC
));
$soapParams = [
'apiKey' => $api_key,
'sign' => $sign,
'time' => $time,
'productId' => "512562191",
'itemId' => "260",
'lang' => 'tr'
];
$result = $soapClient->__soapCall('getProduct', $soapParams);
return $result;