Scout24 / restapi-php-sdk

SDK für PHP-Entwickler um die Arbeit mit der API von ImmobilienScout24 zu vereinfachen. Über die API erhält man Ergebnislisten, Objektdaten, uvm. von ImmobilienScout und kann diese Daten inhherhalb seines Webservice integrieren. Die Dokumentation zum SDK findet man unter https://github.com/Immocaster/php-sdk/wiki.
64 stars 46 forks source link

Export multiple objects #5

Closed x1a closed 10 years ago

x1a commented 10 years ago

Hi,

I need to export a few objects with one instance of Immocaster_Sdk I do:

$oImmocaster->exportObject($object1); $oImmocaster->exportObject($object2);

but get errors on the second one first: can not redeclare function 'multipushXml' in Immocaster_Xml_Writer, line 108 I tried to fix it (added function_exists condition) but other errors appeared... probably you know that. Is there a way to export multiple objects?

thanks

Pixelairport commented 10 years ago

Did you try to do it with an XML instead of using the wrapper. Because the wrapper is also not supported anymore. Please try to create your own xml as parameter xml instead of the parameter estate. I mean you have to create the xml like immobilienscout24 says in their wiki (http://developerwiki.immobilienscout24.de/wiki/Import-Export-API) and then save it as parameter $object1['xml']='XML_STUFF'.

x1a commented 10 years ago

Thanks, I will try it with xml parameter