Zoho remote show api wont return any response
Hey. I have big problem. I have a local server nad trying to post a file via PHP and curl but cant get any response.
Does it need that my server will be ssl secured? I only want to display presentation files over web without editing.
-
<?php
$fields = array();
$fields["content"] = @"/files/Sample.odp";
$fields["apikey"] =" my secret api key :D";
$fields["output"] ="url";
$fields["mode"] ="normaledit";
$fields["filename"] = 'Sample.odp';
$fields["lang"] ="en";
$fields["id"] ="12345678";
$fields["format"] ='odp';
$fields["saveurl"] ='https://www.uploader.com/save.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://show.zoho.com/remotedoc.im');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, true);
$page = curl_exec($ch);
echo $page;
curl_close($ch);
?>