Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 24 Pomógł: 0 Dołączył: 16.07.2010 Ostrzeżenie: (0%)
|
PLIK: Pobierz_Aukcje.php wygląda tak:
Witajcie, próbuję napisać własny panel aukcji allegro i napotkałem 1 problem a mianowicie gdy otwieram plik pobierz_aukcje.php wyskakuje mi taki error: Kod Fatal error: Call to undefined method Allegro::getAuctionsFromAllegro() in pobierz_aukcje.php on line 10 Prosiłbym o jak najszybszą pomoc (IMG:style_emoticons/default/smile.gif) #EDIT #phpion hahaha OMG nie spojrzalem, ze klucz jest niepoprawny Ten post edytował S3baso 19.07.2011, 10:31:26 |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 24 Pomógł: 0 Dołączył: 16.07.2010 Ostrzeżenie: (0%)
|
Jest to całkiem możliwe, że coś zwaliłem (IMG:style_emoticons/default/smile.gif)
Proszę ciebie bardzo: Kod <?php
class Allegro { public function __construct($opcje=array()) { foreach($opcje as $n=>$v) $this->$n=$v; } public function login() { $this->soap = new SoapClient('http://webapi.allegro.pl/uploader.php?wsdl', array('encoding'=>'UTF-8')); $this->soap->soap_defencoding = 'UTF-8'; $this->soap->decode_utf8 = false; $params = array( 'sysvar' => 1, // 1 dla AllegroWebApi 'country-id' => $this->country_code, 'webapi-key' => $this->webapi_key ); $result = $this->soap->__soapCall('doQuerySysStatus',$params); $this->local_version = $result['ver-key']; $msg = array( 'user-login' => $this->login, 'user-password' => $this->haslo, 'country-code' => $this->country_code, 'webapi-key' => $this->webapi_key, 'local-version' => $this->local_version ); $response = $this->soap->__call('doLogin', $msg); $this->session_handle_part= $response['session-handle-part']; $msg= array('country-id'=> $this->country_code, 'user-login'=>$this->login); $this->user_id= $this->soap->__call('doGetUserID', $msg); return true; } public function getAuctionsFromAllegro() { $msg=array( 'user-id' => $this->user_id, 'webapi-key' => $this->webapi_key, 'country-id' => $this->country_code, 'offset' => $this->offset); $allAuctions= $this->soap->__call('doGetUserItems', $msg); } } ?> |
|
|
|
S3baso [PHP]Panel Aukcji Allegro 19.07.2011, 09:05:55
Wilu88 A czy ścieżka do pliku allegro.inc.php jest prawid... 19.07.2011, 09:21:41
thek Jak byk pisze: "Odwołanie do nie istniejącej ... 19.07.2011, 09:25:36
S3baso Gdyby byla nie prawidłowa wywaliło by error: No su... 19.07.2011, 09:30:56 
phpion Pokaż zawartość pliku allegro.inc.php bo obawiam s... 19.07.2011, 09:53:28
phpion Przed wywołaniem $all->getAuctionsFromAlle... 19.07.2011, 10:14:00
S3baso Hmmm, zrobiłem to w ten sposób
Kod $all = ne... 19.07.2011, 10:22:47
phpion W komunikacie błędu masz wszystko podane:
CytatAcc... 19.07.2011, 10:27:27
S3baso Hmmm... Coś tu jest grubo namieszane, klucz musi b... 20.07.2011, 21:38:54
cycofiasz Skończ waść i wstydu oszczędź - sobie a nam nerwów... 20.07.2011, 21:50:17
S3baso Chyba od tego jest to forum? Od pomocy 20.07.2011, 22:01:00
cycofiasz Wybrałeś zły dział, powinno być przedszkole. Ale i... 20.07.2011, 22:05:54 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 23:45 |