Api - php - exportObjectAttachment - Resource was not found

26 views
Skip to first unread message

Stephane Alamichel

unread,
May 15, 2018, 4:10:57 AM5/15/18
to immobilienscout24-development
Dear Support 

I'm facing with an issue for sending pictures to IS24, i'm using PHP with (https://github.com/ImmobilienScout24/restapi-php-sdk)

When I'm calling this method :  exportObjectAttachment with parameters below :

 $aParameter = array(
            'externalId' => $externalId ,
            'type' => 'Picture', 
            'file' => $imgpath . $filename, // " ../images/biens/sandraarndt/ATL-sandraarndt-0522473804-P.jpg ";
            'estateid' => $estateid );
 
$ret = $oImmocaster->exportObjectAttachment($aParameter);

I get the following response :

<common:messages xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0">
    <message>
        <messageCode>ERROR_RESOURCE_NOT_FOUND</messageCode>
        <message>Resource was not found.</message>
    </message>
</common:messages>


of course, the file exist on the server for instance : 

I'm testing the method on this expose : https://www.immobilienscout24.de/expose/104647157#/

​Could you please help us ? 

B
​est regards​
Reply all
Reply to author
Forward
0 new messages