Mam problem z wyciągnięciem z eBay za pomocą SOAP konkretnych danych np. tytułu, opisu itd.
Poniższy kod zwraca wszystki dane.
<pre> <? $devId = 'Klucz1'; $appId = 'Klucz2'; $certId = 'Klucz3'; $token = "TOKEN"; $wsdl_url = 'http://developer.ebay.com/webservices/latest/eBaySvc.wsdl'; 'trace' => 1 , 'exceptions'=> 1 , 'encoding'=>'UTF-8' , 'location' => 'https://api.ebay.com/wsapi?callname=GetItem&siteid=0&appi )); 'eBayAuthToken' => new SoapVar($token, XSD_STRING, NULL, NULL, NULL, 'urn:ebay:apis:eBLBaseComponents'), 'Credentials' => new SoapVar( new ArrayObject( 'AppId' => $appId, 'DevID' => $devId, 'AuthCert' => $certId ) ) , SOAP_ENC_OBJECT , null , null , null , 'urn:ebay:apis:eBLBaseComponents' ), )); // formatting header $header_body = new SoapVar($Auth, SOAP_ENC_OBJECT); 'RequesterCredentials', $header_body)); 'DetailLevel' => 'ReturnAll', 'ItemID'=>'180022136730'); ?>
Takie dane zwraca poniższy kod:
<?php stdClass Object ( [Timestamp] => 2006-09-03T17:36:06.539Z [Ack] => Success [Version] => 475 [Build] => e475_core_Bundled_3434599_R1 [Item] => stdClass Object ( [AutoPay] => [BuyerProtection] => ItemIneligible [BuyItNowPrice] => stdClass Object ( [_] => 25 [currencyID] => PLN ) [Country] => PL [CrossPromotion] => stdClass Object ( [ItemID] => 180022136730 [PrimaryScheme] => CategoryProximity [PromotionMethod] => UpSell [SellerID] => hawk15091946 [ShippingDiscount] => [SellerKey] => 0 ( [0] => stdClass Object ( [ItemID] => 180015023651 [PictureURL] => <a href="http://thumbs.ebaystatic.com/pict/180015023651.jpg" target="_blank">http://thumbs.ebaystatic.com/pict/180015023651.jpg</a> [Position] => 1 [PromotionPrice] => stdClass Object ( [_] => 35 [currencyID] => PLN ) [PromotionPriceType] => BuyItNowPrice [SelectionType] => Automatic [Title] => WAGON TYPU AMERYKAĹSKIEGO MEHANO GREAT NORTHERN [ListingType] => StoresFixedPrice ) [1] => stdClass Object ( [ItemID] => 180024747909 [PictureURL] => <a href="http://thumbs.ebaystatic.com/pict/180024747909.jpg" target="_blank">http://thumbs.ebaystatic.com/pict/180024747909.jpg</a> [Position] => 2 [PromotionPrice] => stdClass Object ( [_] => 6.5 [currencyID] => PLN ) [PromotionPriceType] => BuyItNowPrice [SelectionType] => Automatic [Title] => BALSA KWADRAT 10 X 10 X 980 [ListingType] => FixedPriceItem ) [2] => stdClass Object ( [ItemID] => 180024747189 [PictureURL] => <a href="http://thumbs.ebaystatic.com/pict/180024747189.jpg" target="_blank">http://thumbs.ebaystatic.com/pict/180024747189.jpg</a> [Position] => 3 [PromotionPrice] => stdClass Object ( [_] => 18.5 [currencyID] => PLN ) [PromotionPriceType] => BuyItNowPrice [SelectionType] => Automatic [Title] => PASKI DO SZLIFOWENIA EXCEL NR55683 grift 400 [ListingType] => FixedPriceItem ) [3] => stdClass Object ( [ItemID] => 180024747972 [PictureURL] => <a href="http://thumbs.ebaystatic.com/pict/180024747972.jpg" target="_blank">http://thumbs.ebaystatic.com/pict/180024747972.jpg</a> [Position] => 4 [PromotionPrice] => stdClass Object ( [_] => 4.5 [currencyID] => PLN ) [PromotionPriceType] => BuyItNowPrice [SelectionType] => Automatic [Title] => PRÄT MODELARSKI z drzewa sosnowego o Ĺ›rednicy 9,8 mm [ListingType] => FixedPriceItem ) ) ) [Currency] => PLN [Description] => Zamek ROTENFELS 1/120 JEST TO MODEL KARTONOWY W SKALI TT 1/120 ZAMKU NIEMIECKIEGO WYDANY PRZEZ FIRME SCHREIBER-BOGEN MODELLBAU.SWIETNY NA MAKIETE KOLEJOWA. Aleksander OLBRACHT, 27-200 Starachowice, ul. GĂłrna 11a/24, Polska. Konto w m Banku Nr:87 1140 2004 0000 3802 3182 1518 lub Bank Polska Kasa Opieki S.A. II o / Starachowice, 27-200 Starachowice, ul. Lipowa 29,nr.konta: 32 1240 1398 1111 0010 0701 3101 lub konto INTELIGO 50 1020 5558 1111 1538 0590 0055 Bank Zachodni WBK S.A 90 1090 2040 0000 0001 0478 5784 wĹ‚aĹ›ciciel konta: Aleksander Olbracht ProszÄ™ w tytule przelewu podać nr . wygranego przedmiotu i nr .aukcji lub nazwÄ™ przedmiotu. O kosztach przesyĹ‚ki proszÄ™ siÄ™ poinformować u sprzedawcy. Sklep modelarski"ALEKSO"27-200 Starachowice ul .GĂłrna 11A/24. Telefon kontaktowy: (041) 274 2923 (w godz.: do 9:30 do 23:00). Tel . kom. 0~609331599,GG-8878041 Skype : aleksanderolbracht. =============================================================================Aleksander OLBRACHT, 27-200 Starachowice, ul. GĂłrna 11A/24, Polen. Bankkontonummer:87 1140 2004 0000 3802 3182 1518 bei m Bank ( Polen ) Kontobesitzer: Aleksander Olbracht) oder bei Bank Polska Kasa Opieki S.A. II o/Starachowice,27-200 Starachowice, ul. Lipowa 29,Bankkontonummer:PL 32 1240 1398 1111 0010 0701 3101 PKOPPLPW lub konto INTELIGO 50 1020 5558 1111 1538 0590 0055 Bank Zachodni WBK S.A 90 1090 2040 0000 0001 0478 5784 Kontobesitzer: Aleksander Olbracht. Bitte geben Sie auf dem Ăśberweisungsformular die Nummer des gewahlten Produktes und die Auktionnummer an. Betreffend Versandkosten wenden Sie sich, bitte, an den Verkäufer. MODELGESCHAEFT"ALEKSO" Kontakttelefon: 48 41 274 2923 Tel . kom. 0~609331599,GG-8878041 Skype : aleksanderolbracht. [GiftIcon] => 0 [HitCounter] => NoHitCounter [ItemID] => 180022136730 [ListingDetails] => stdClass Object ( [Adult] => [BindingAuction] => [CheckoutEnabled] => 1 [ConvertedBuyItNowPrice] => stdClass Object ( [_] => 8.1 [currencyID] => USD ) [ConvertedStartPrice] => stdClass Object ( [_] => 6.48 [currencyID] => USD ) [HasReservePrice] => [StartTime] => 2006-08-25T19:18:20.000Z [EndTime] => 2006-09-04T19:18:20.000Z [ViewItemURL] => <a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=180022136730&category=2595" target="_blank">http://cgi.ebay.com/ws/eBayISAPI.dll?ViewI...p;category=2595</a> [HasUnansweredQuestions] => [HasPublicMessages] => [ExpressListing] => ) [Quantity] => 1 ) ) ?>