我想知道是否有人可以建议在Google云端硬盘中的文件更新用户权限时是否捕获了日期/时间戳?
似乎没有为此目的列出任何内容: https://developers.google.com/drive/v2/reference/permissions/update
你能指出我正确的方向吗?
答案 0 :(得分:0)
当您列出权限或获得特定权限时,API会提供ETag
字段,其作用类似于时间戳:
{
"kind": "drive#permissionList",
"etag": "\"sIP8ArR2PAy9qIx8FYkTpbHmKik/nJ62bPlkoRJd-M_nZE_16ustISo\"",
"selfLink": "https://content.googleapis.com/drive/v2/files/13oJ5-WwSHlo_7ihh6mCiRSAnm-1NVCERTHNpNYHou54/permissions",
"items": [
{
"kind": "drive#permission",
"etag": "\"sIP8ArR2PAy9qIx8FYkTpbHmKik/IvARrqkP42sg1PAxAPG7aLj6j2k\"",
"id": "XXXXXXX",
"selfLink": "https://content.googleapis.com/drive/v2/files/13oJ5-XXXXXX",
"name": "XXXX",
"emailAddress": "XXXXX",
"domain": "gmail.com",
"role": "owner",
"type": "user",
"photoLink": "XXXXX"
},
{
"kind": "drive#permission",
"etag": "\"sIP8ArR2PAy9qIx8FYkTpbHmKik/JBxs7HICtZb-IpV7hqg-y3WbKzI\"",
"id": "XXXXX",
"selfLink": "XXXXX",
"name": "XXXX",
"emailAddress": "XXXX",
"domain": "gmail.com",
"role": "writer",
"type": "user",
"photoLink": "XXXXX"
}
]
}
答案 1 :(得分:0)
当为该文件更改权限时,Files resource的modifiedDate
字段会更改。