exportObjectAttachment - PHP API Unable to find URL

42 views
Skip to first unread message

willia...@gmail.com

unread,
Nov 8, 2016, 9:27:55 AM11/8/16
to immobilienscout24-development, will...@opencrm.co.uk
Hello,

I am trying to use your PHP API to send image URLs (instead of uploading every image manually) to attach to a property object however every link I am trying is coming back with a "Die Datei "http://i.imgur.com/Ivs9Zs1.png" wurde nicht gefunden. Evtl. ist der Pfad oder Dateiname nicht korrekt.". If you try and go to this URL you will notice that the image is actually accessible. I have also tried to upload via a domain with HTTPS and this also did not work.

The snippet code I am using is as follows (I also include the SDK file above however to keep the post short this is the code causing the problem):

$aParameter = array(
   
"username" => "my-username",
   
"estateid" => "estate-id",
   
"title" => "TEST IMAGE",
   
"type" => "Picture",
   
"file" => "http://i.imgur.com/Ivs9Zs1.png"
);


 
print_r
($aParameter);


print_r
($oImmocaster->exportObjectAttachment($aParameter));


Any help or working example you can give me would be greatly appreciated.
Reply all
Reply to author
Forward
0 new messages