Currently, I am using dropbox-Php-SDK Kunal Verma. webhook URL added in dropbox console. at the change of file or folder, the webhook gets active.
$listFolderContents = $dropbox->listFolder("/",[ "include_deleted"=> false,"include_has_explicit_shared_members"=> false,"include_media_info"=> false,"include_mounted_folders"=> true,"include_non_downloadable_files"=> true,"path"=> "/",'recursive' => true]);
print_r($listFolderContents);
$cursor = $listFolderContents->getCursor();
$listFolderContinue = $dropbox->listFolderContinue($cursor);
$post_dump = print_r($listFolderContinue, TRUE);
$fpost = fopen('logs.txt', 'w');
fwrite($fpost, $post_dump);
fclose($fpost);
then I am trying to get the cursor and send it to listFolderContinue function but getting blanck entry
response :
Kunnu\Dropbox\Models\MetadataCollection Object
(
[data:protected] => Array
(
[entries] => Array
(
)
[cursor] => **********************_NTiXkJp_ZcSFBt5NwY_Hvum1NbUA4aMwMr5A_A9-oL_usI65mlvlg0K4E1rElQMXXOBjqTEcEV37HTxB-StFmr1j3t9li7LLHI9DRmfbywU3OXCZoH6yzYEbATNcug2Nd1XuHxM-jC6SmdY4Aj3oeZVaQ9R5hkDVLPCiw4h_dtOEtdE
[has_more] =>
)
[items:protected] => Kunnu\Dropbox\Models\ModelCollection Object
(
[items:protected] => Array
(
)
[escapeWhenCastingToString:protected] =>
)
[cursor:protected] => ********************NTiXkJp_ZcSFBt5NwY_Hvum1NbUA4aMwMr5A_A9-oL_usI65mlvlg0K4E1rElQMXXOBjqTEcEV37HTxB-StFmr1j3t9li7LLHI9DRmfbywU3OXCZoH6yzYEbATNcug2Nd1XuHxM-jC6SmdY4Aj3oeZVaQ9R5hkDVLPCiw4h_dtOEtdE
[hasMoreItems:protected] =>
)