回答

2

爲了得到一個文件,你需要使用Advanced Drive Service的意見(你應該選擇資源腳本編輯器允許>高級谷歌的服務......,然後啓用它在谷歌開發者控制檯。Official Documentation

啓用後,您可以使用Drive.Comments.list檢索評論。評論的屬性列表可以記錄爲here

下面是一個例子:

function retrieveComments() { 
    var comments; 
    comments = Drive.Comments.list('docId'); 
    if (comments.items && comments.items.length > 0) { 
     for (var i = 0; i < comments.items.length; i++) { 
     var comment = comments.items[i]; 
     Logger.log('%s on %s by %s', comment.content, comment.createdDate, comment.author.displayName); 
     } 
    } else { 
     Logger.log('No comments found.'); 
    } 
} 

根據你的使用情況,您可以存儲commentIdcreatedDatemodifiedDate,以評估是否已經改變

+0

非常感謝您!這正是我期待的! – Silko

相關問題