Hello, i am experiencing difficulties in sharing a file with an external email in Zoho Docs through the API.
This is the coding i am using for test:
$url = "https://apidocs.zoho.eu/files/v1/share/?authtoken=".$AUTHTOKEN."&scope=docsapi";
$fields = array(
'docids' => '4yfsme75c5a69e3be4ed9a78675997e8e644f',
'emailids' => 'example@mail.com',
'permission' => 'readwrite',
'notify' => true,
'message' => 'test msg'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_URL, $url );
$result = curl_exec($ch);
$information = curl_getinfo($ch);
curl_close($ch);
echo '<pre/>';
var_dump($result);
exit;
I am pretty sure that my AuthToken is valid, because i am uploading files successfully.
I am sure that this is an existing file Id in my Zoho Docs.
I will appreciate any help with this, thank you :)