Chcę zalogować się do allegro.
Zapozyczyłem przykłądy z dokumentacji dostepnej na webapi.allegro.pl
Wyszło mi
<?php ( "user-login" => $login, "user-password" => $pass, "country-code" => $kraj, "webapi-key" => $apikey, "local-version" => $ver_key, ); $soap = new SoapClient('http://webapi.allegro.pl/uploader.php?wsdl', true); $soap->soap_defencoding = 'UTF-8'; $soap->decode_utf8 = false; $dran = $soap->call("doLogin", $msg); ?>
I wywala mi taki błąd
Warning: SoapClient::__construct() expects parameter 2 to be array, boolean given in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php on line 31
Fatal error: Uncaught SoapFault exception: [Client] SoapClient::__construct() [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: Invalid parameters in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php:31 Stack trace: #0 /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php(31): SoapClient->__construct('http://webapi.a...', true) #1 {main} thrown in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php on line 31
31 linia to
<?php $soap = new SoapClient('http://webapi.allegro.pl/uploader.php', true); ?>
Wersja PHP 5
Wersja nuSOAP 1.73
Serwer obsługuje SOAP
Co jest?