2
PHP로 Google 드라이브 Api v3를 사용합니다. Google 문서 (application/vnd.google-apps.document)가 있습니다.Google 드라이브 Api-google-apps.document - 수정 시간은
어떻게 마지막으로 수정 한 시간을 얻을 수 있습니까?
내가 시도 :
$this->getClient()->files->get($id,[]);
그리고 모든 세부 사항 빈 얻을 방법 마지막 업데이트 날짜를 얻을?
Google_Service_Drive_DriveFile {#1362 ▼
#collection_key: "spaces"
+appProperties: null
#capabilitiesType: "Google_Service_Drive_DriveFileCapabilities"
#capabilitiesDataType: ""
#contentHintsType: "Google_Service_Drive_DriveFileContentHints"
#contentHintsDataType: ""
+createdTime: null
+description: null
+explicitlyTrashed: null
+fileExtension: null
+folderColorRgb: null
+fullFileExtension: null
+headRevisionId: null
+iconLink: null
+id: "1WoKgfNSFN1sIDqbLNahTMe4Ds8rNygt2E8AkUcbO1qM"
#imageMediaMetadataType: "Google_Service_Drive_DriveFileImageMediaMetadata"
#imageMediaMetadataDataType: ""
+isAppAuthorized: null
+kind: "drive#file"
#lastModifyingUserType: "Google_Service_Drive_User"
#lastModifyingUserDataType: ""
+md5Checksum: null
+mimeType: "application/vnd.google-apps.document"
+modifiedByMeTime: null
+modifiedTime: null
+name: "+ 4.4 Szkolenia żeglarskie, REJSY SZKOLENIOWE"
+originalFilename: null
+ownedByMe: null
#ownersType: "Google_Service_Drive_User"
#ownersDataType: "array"
+parents: null
#permissionsType: "Google_Service_Drive_Permission"
#permissionsDataType: "array"
+properties: null
+quotaBytesUsed: null
+shared: null
+sharedWithMeTime: null
#sharingUserType: "Google_Service_Drive_User"
#sharingUserDataType: ""
+size: null
+spaces: null
+starred: null
+thumbnailLink: null
+trashed: null
+version: null
#videoMediaMetadataType: "Google_Service_Drive_DriveFileVideoMediaMetadata"
#videoMediaMetadataDataType: ""
+viewedByMe: null
+viewedByMeTime: null
+viewersCanCopyContent: null
+webContentLink: null
+webViewLink: null
+writersCanShare: null
#internal_gapi_mappings: []
#modelData: []
#processed: []
}
이 날짜를 얻는 다른 방법이 있습니까? 당신은 내가이
는 몇 가지 유용한 기능 https://github.com/sazaamout/gDrive/blob/master/gDrive.php
봐 내 자식 저장소에서보세요 도움이되기를 바랍니다이
$response = $this->service->files->get($fileId, array(
'fields' => 'id, name, modifiedTime',
// uncomment the following if you are working with team drive
//'supportsTeamDrives' => true
));
print_r($response);
을 시도 할 필요 필드을 지정해야
[he re] (http://stackoverflow.com/questions/35435934/how-can-i-get-files-lastmodified-in-google-drive-api-v3) 전체 리소스는 더 이상 드라이브 API v3에서 기본적으로 반환되지 않습니다. . [fields queries 매개 변수] (https://developers.google.com/drive/v3/web/migration#fields)를 사용하여 특정 필드를 반환하도록 요청하십시오. 이 [관련 스레드] (http://stackoverflow.com/questions/16114970/google-drive-document-time-stamp)도 확인할 수 있습니다. – abielita