Reputation: 101
I am using Google Drive API v3 to fetch the google drive file. I have fetched shared drive metadata with files info. I have implemented Webhook to get notification about the changes in all files as well as changes related to the shared drive(like addition or removal of a member, drive renamed, etc.) As mentioned in this link https://developers.google.com/drive/api/v3/reference/changes#resource link the webhook response only contains the resource/item which has changed. It doesn't give a specific idea about what type of change has occurred. As per the google drive documentations, Google Drive keeps a change log for each user and shared drive. Can anybody give me an idea to get the specific event name(like member added or removed, drive renamed, etc.)? Please help me to solve this issue. Thanks in advance.
Upvotes: 1
Views: 282
Reputation: 116996
As far as i know there is no way to see if someone has been removed from the file sharing. As you can see from the list changes method it returns a list of all of the changes to a file
{
"kind": "drive#changeList",
"nextPageToken": string,
"newStartPageToken": string,
"changes": [
changes Resource
]
}
A change resource does not appear to contain any information about who the file was shared with
{
"kind": "drive#change",
"type": string,
"changeType": string,
"time": datetime,
"removed": boolean,
"fileId": string,
"file": files Resource,
"teamDriveId": string,
"driveId": string,
"teamDrive": teamdrives Resource,
"drive": drives Resource
}
Unfortunatly the information that you have is going to be limited your might want to consider adding a feature request for sharing changed information you can do that here
Upvotes: 1