Witam
Wszystko działa dobrze tylko źle pokazuje adres do wysyłki
HTML
HEAD
titleSprzedane i dane kupujących/title
META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=utf-8"
/HEAD
BODY
?php
$login='login';
$haslo='haslo';
$apikod='kodapi';
$nraukcji=$_POST['nraukcji'];
echo "
input type=hidden name=nraukcji value=$nraukcji";
define('COUNTRY_CODE', 1);
define('WEBAPI_USER_LOGIN', $login);
define('WEBAPI_USER_ENCODED_PASSWORD', base64_encode(hash('sha256', $haslo, true)));
define('WEBAPI_KEY', $apikod);
$options['features'] = SOAP_SINGLE_ELEMENT_ARRAYS;
try {
$soapClient = new SoapClient('https://webapi.allegro.pl/service.php?wsdl', $options);
$request = array(
'countryId' = COUNTRY_CODE,
'webapiKey' = WEBAPI_KEY
);
$result = $soapClient-doQueryAllSysStatus($request);
$versionKeys = array();
foreach ($result-sysCountryStatus-item as $row) {
$versionKeys[$row-countryId] = $row;
}
$request = array(
'userLogin' = WEBAPI_USER_LOGIN,
'userHashPassword' = WEBAPI_USER_ENCODED_PASSWORD,
'countryCode' = COUNTRY_CODE,
'webapiKey' = WEBAPI_KEY,
'localVersion' = $versionKeys[COUNTRY_CODE]-verKey,
);
$session = $soapClient-doLoginEnc($request);
$szukaj1 = array(
'sessionHandle' = $session-sessionHandlePart,
'itemsArray' = array($nraukcji )
);
$sprzedane = array(
'sessionId' = $session-sessionHandlePart,
'sortOptions' = array(
'sortType' = 1,
'sortOrder' = 2),
'pageSize' = 50,
'pageNumber' = 0
);
$items = $soapClient-doGetMySoldItems($sprzedane);
echo "centerTABLE ALIGN='CENTER' VALIGN='TOP' CELLSPACING='0' CELLPADDING='0' BORDER='1'
tr
tdLp/td
tdnr aukcji/td
tdNazwa/td
tdMiniaturka/td
/tr
";
$count = $items-soldItemsCounter;
//echo 'DIV ALIGN=leftpre';
//var_dump($items);
//echo '/PRE/DIV';
for($i=0;$i$count;$i++)
{
echo 'tr';
echo "td";
echo $i+1;
echo "/tdtda HREF='http://allegro.pl/show_item.php?item=";
echo $items-soldItemsList-item[$i]-itemId;
echo "'";
echo $items-soldItemsList-item[$i]-itemId;
echo "/atda HREF='http://allegro.pl/show_item.php?item=";
echo $items-soldItemsList-item[$i]-itemId;
echo "'";
echo $items-soldItemsList-item[$i]-itemTitle ;
echo "/a/td";
echo "tdimg src='";
echo $items-soldItemsList-item[$i]-itemThumbnailUrl;
echo "' //tdtr";
echo "";
$odlicz = $items-soldItemsList-item[$i]-itemBiddersCounter ;
$szukaj1 = array(
'sessionHandle' = $session-sessionHandlePart,
'itemsArray' = array($items-soldItemsList-item[$i]-itemId )
)
;
$klienci = $soapClient-doGetPostBuyData($szukaj1);
for($l=0;$l$odlicz;$l++)
{
echo "td colspan='2'";
echo "Adres do Allegrobr";
echo "strong";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userLogin;
echo "/strong font size='1'[";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userId;
echo "]/font";
echo "br";
echo "Liczba punktów ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userRating;
echo "br";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userFirstName;
echo " ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userLastName;
echo "br";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userAddress;
echo "br";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userPostcode ;
echo " ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userCity;
echo "brtel ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userPhone ;
echo "bre-mail ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userEmail;
echo "br";
echo "/td";
echo "td colspan='2'";
echo "Adres do Wysyłkibr";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userSentToData-userFirstName;
echo " ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userSentToData-userLastName;
echo "br";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userSentToData-userAddress ;
echo "br";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userSentToData-userPostcode ;
echo " ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userSentToData-userCity ;
echo "brtel ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userPhone;
echo "bre-mail ";
echo $klienci-itemsPostBuyData-item[0]-usersPostBuyData-item[$l]-userData-userEmail;
echo "br";
echo "/td/tr";
}
//echo 'DIV ALIGN=leftpre';
//echo '/PRE/DIV';
echo "/td";
} // koniec try WebApiz
echo '/TABLE';
}
catch(SoapFault $fault){
// xmp tag displays xml output in html
echo 'Request : br/xmp',
$soapClient-__getLastRequest(),
'/xmpbr/br/ Error Message : br/',
$fault-getMessage();
}
?
/BODY
/HTML