Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Panel Aukcji Allegro
S3baso
post
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:
  1. <?php
  2. $op['login'] = 'xxxx';
  3. $op['haslo'] = 'xxxx';
  4. $op['country_code'] = '1'; // dla allegro
  5. $op['webapi_key'] = 'xxxx';
  6.  
  7. require_once('./allegro.inc.php');
  8.  
  9. $all = new Allegro($op);
  10. $all -> getAuctionsFromAllegro(6);
  11. ?>


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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
S3baso
post
Post #2





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 16.07.2010

Ostrzeżenie: (0%)
-----


Hmmm, zrobiłem to w ten sposób

Kod
    $all = new Allegro(array(
    'country_code' => '1',
    'webapi_key' => 'xxxkey',
    'login' => 'xx',
    'haslo' => 'xxx',
    ));
    $all->login();
//$all = new Allegro($op);
$all -> getAuctionsFromAllegro(6);



Ale twierdzi ze zle dane etc.. Blad sam zboacz:

Kod
Fatal error: Uncaught SoapFault exception: [ERR_WEBAPI_KEY] Access key to WebAPI is incorrect or has been blocked. Please contact the author of the program! in /home/seba/public_html/tester/n/dodatki/allegro.inc.php:32 Stack trace: #0 /home/seba/public_html/tester/n/dodatki/allegro.inc.php(32): SoapClient->__call('doGetUserID', Array) #1 /home/seba/public_html/tester/n/panel_aukcji.php(15): Allegro->login() #2 {main} thrown in /home/seba/public_html/tester/n/dodatki/allegro.inc.php on line 32
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.10.2025 - 05:24