Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> WebApi Allegro doGetSellFormFieldsExt, How Know
casperii
post
Post #1





Grupa: Zarejestrowani
Postów: 681
Pomógł: 28
Dołączył: 14.08.2014

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


Panowie jak ugryźć:
  1. doGetSellFormFieldsExt



dobra zrobiłem coś takiego:
  1. $dogetsellformfieldsforcategory_request = array(
  2. 'webapiKey' => KEY,
  3. 'countryId' => COUNTRY,
  4. 'categoryId' => CAT
  5. );
  6. $client = new SoapClient(LINK);
  7. $pom=$client->doGetSellFormFieldsForCategory($dogetsellformfieldsforcategory_request);


następnie to wyprintowałem:

  1. echo '<pre>';
  2. print_r($pom);
  3. echo '</pre>';


i pokazuje mi coś takiego:
  1. stdClass Object
  2. (
  3. [sellFormFieldsForCategory] => stdClass Object
  4. (
  5. [sellFormFieldsList] => stdClass Object
  6. (
  7. [item] => Array
  8. (
  9. [0] => stdClass Object
  10. (
  11. [sellFormId] => 1
  12. [sellFormTitle] => Nazwa przedmiotu
  13. [sellFormCat] => 0
  14. [sellFormType] => 1
  15. [sellFormResType] => 1
  16. [sellFormDefValue] => 0
  17. [sellFormOpt] => 1
  18. [sellFormPos] => 0
  19. [sellFormLength] => 50
  20. [sellMinValue] => 0.00
  21. [sellMaxValue] => 0.00
  22. [sellFormDesc] =>
  23. [sellFormOptsValues] =>
  24. [sellFormFieldDesc] => Tytuł powinien być zwięzły i bezpośrednio wskazywać, co masz do zaoferowania. W tytule możesz użyć maksymalnie 50 znaków.
  25. [sellFormParamId] => 0
  26. [sellFormParamValues] =>
  27. [sellFormParentId] => 0
  28. [sellFormParentValue] =>
  29. [sellFormUnit] =>
  30. [sellFormOptions] => 0
  31. )
  32.  
  33. [1] => stdClass Object
  34. (
  35. [sellFormId] => 2
  36. [sellFormTitle] => Kategoria
  37. [sellFormCat] => 0
  38. [sellFormType] => 2
  39. [sellFormResType] => 2
  40. [sellFormDefValue] => 0
  41. [sellFormOpt] => 1
  42. [sellFormPos] => 2
  43. [sellFormLength] => 500
  44. [sellMinValue] => 1.00
  45. [sellMaxValue] => 0.00
  46. [sellFormDesc] =>
  47. [sellFormOptsValues] =>
  48. [sellFormFieldDesc] => Dokładnie określ kategorię przedmiotu
  49. [sellFormParamId] => 0
  50. [sellFormParamValues] =>
  51. [sellFormParentId] => 0
  52. [sellFormParentValue] =>
  53. [sellFormUnit] =>
  54. [sellFormOptions] => 0
  55. )
  56.  
  57. [2] => stdClass Object
  58. (
  59. [sellFormId] => 3
  60. [sellFormTitle] => Data rozpoczęcia
  61. [sellFormCat] => 0
  62. [sellFormType] => 9
  63. [sellFormResType] => 9
  64. [sellFormDefValue] => 0
  65. [sellFormOpt] => 8
  66. [sellFormPos] => 3
  67. [sellFormLength] => 11
  68. [sellMinValue] => 0.00
  69. [sellMaxValue] => 0.00
  70. [sellFormDesc] =>
  71. [sellFormOptsValues] =>
  72. [sellFormFieldDesc] => Samodzielne planowanie terminu rozpoczęcia aukcji przydaje się zwłaszcza przy zarządzaniu dużą liczbą aukcji.Możesz wystawić wiele aukcji, które zakończą się w tym samym czasie. Planowane wystawianie jest także przydatne w sytuacjach, gdy wiesz, że chwilowo nie będziesz mieć dostępu do Internetu (wakacyjne wyjazdy itp.).
  73. [sellFormParamId] => 0
  74. [sellFormParamValues] =>
  75. [sellFormParentId] => 0
  76. [sellFormParentValue] =>
  77. [sellFormUnit] =>
  78. [sellFormOptions] => 0
  79. )
  80.  
  81. [3] => stdClass Object
  82. (
  83. [sellFormId] => 4
  84. [sellFormTitle] => Czas trwania
  85. [sellFormCat] => 0
  86. [sellFormType] => 4
  87. [sellFormResType] => 2
  88. [sellFormDefValue] => 2
  89. [sellFormOpt] => 1
  90. [sellFormPos] => 0
  91. [sellFormLength] => 2
  92. [sellMinValue] => 0.00
  93. [sellMaxValue] => 99.00
  94. [sellFormDesc] => 3|5|7|10|14|30|Do wyczerpania
  95. [sellFormOptsValues] => 0|1|2|3|4|5|99
  96. [sellFormFieldDesc] => "Przy wystawieniu na 14 dni - pobierana jest opłata 0,20 zł, przy wystawieniu "do wyczerpania" opłaty pobierane cyklicznie"
  97. [sellFormParamId] => 0
  98. [sellFormParamValues] =>
  99. [sellFormParentId] => 0
  100. [sellFormParentValue] =>
  101. [sellFormUnit] =>
  102. [sellFormOptions] => 0
  103. )
  104.  
  105. [4] => stdClass Object
  106. (
  107. [sellFormId] => 5
  108. [sellFormTitle] => Liczba sztuk
  109. [sellFormCat] => 0
  110. [sellFormType] => 2
  111. [sellFormResType] => 2
  112. [sellFormDefValue] => 1
  113. [sellFormOpt] => 1
  114. [sellFormPos] => 0
  115. [sellFormLength] => 9
  116. [sellMinValue] => 1.00
  117. [sellMaxValue] => 100000.00
  118. [sellFormDesc] =>
  119. [sellFormOptsValues] =>
  120. [sellFormFieldDesc] => W Allegro możesz sprzedawać przedmioty poprzez licytację lub po stałej cenie (wybierając tylko opcję "Kup Teraz!").


chciałbym to przelecieć foreachem i wyświetlić te wymagane pola. Pytanie jak to zrobić? mam wyświetlić to jako XML i w tedy czy jak ?
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 21.08.2025 - 02:54