Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Przedmioty z Allegro
Kochan
post 17.10.2012, 23:04:24
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 22.08.2006

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


Witam tak się zastanawiam czy jest możliwość poprzez np. funckje include wyświetlenie moich wystawionych przedmiotów z allegro? Poszukuje jakiegoś gotowego rozwiązania ale nie mogę na nic takiego trafić. Skrypt który na stronie www wyświetla przedmioty wystawione przeze mnie.

Dziękuje za odpowiedzi i Pozdrawiam!
Go to the top of the page
+Quote Post
viking
post 18.10.2012, 12:34:11
Post #2





Grupa: Zarejestrowani
Postów: 6 366
Pomógł: 1115
Dołączył: 30.08.2006

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


http://allegro.pl/webapi/documentation.php


--------------------
Go to the top of the page
+Quote Post
Kochan
post 18.10.2012, 18:54:07
Post #3





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 22.08.2006

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


  1.  
  2. <?php
  3. // .....
  4.  
  5. // Pobranie WSZYSTKICH aukcji wskazanego uzytkownika - prosze zwrocic uwage na dzialanie OFFSET!
  6.  
  7. public function getAuctions ( $offset = 0, $limit = 25 )
  8. {
  9. $items = $this -> doGetUserItems ( $this -> userId, APIKEY, 1, $offset, $limit );
  10.  
  11. $step = ceil ( $items ['user-item-count'] / $limit );
  12. $out = $items ['user-item-list'];
  13.  
  14. while ( $offset < $step ) // $count
  15. {
  16. ++ $offset;
  17.  
  18. $its = $this -> doGetUserItems ( $this -> userId, APIKEY, 1, $offset, $limit );
  19.  
  20. $out = array_merge ( $out, $its ['user-item-list'] );
  21. }
  22.  
  23. return array ( 'user-item-count' => $items ['user-item-count'], 'user-item-list' => $out );
  24. }
  25. // ....
  26.  
  27. ?>
  28.  


w 8 linijce błąd mam.
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.06.2024 - 19:07