When I drag a folder to another location,
is there any way I could know this activity, telling me that it is from where to where?
When I drag a folder to another location,
is there any way I could know this activity, telling me that it is from where to where?
Copyright © 2021 Jogjafile Inc.
Use Google Drive Activity API to get informations about the changes made within a user's Google Drive.
Using activity.query():
itemNamebased on the file/folder that you want to check activity using this format"items/FILE_ID"or"items/FOLDER_ID"filtertodetail.action_detail_case:MOVEto get move action activitiesReferences:
Sample Request Body:
moveActionDetailfolder id: 1BNPRFAJgVMW-DF_sdEsF-_14X0xxxxxResponse Body:
This will return a DriveActivity object that will contain a Move object under ActionDetail object. You can refer to the
removedParents->driveItemto get the information regarding the previous parent folder of the file/folder andaddedParents->driveItemto get the new parent folder of the file/folder