수색…


비고

파일의 URL로 파일을 가져올 수도 있습니다. 파일의 ID가 URL에 있으므로 전체 URL 대신 ID를 사용하면 매개 변수가 더 짧아집니다. ID가 아닌 URL을 저장하면 더 많은 공간이 필요합니다.

파일 ID를 사용하여 Google 드라이브에서 파일 가져 오기

function getGoogleDriveFileById(id) {
  var file;
  
  file = DriveApp.getFileById(id);//Returns a file - The "id" must be a string
  
  //One way to manually get a file ID
  // - Open the file from Google Drive
  // - The file ID is in the URL in the browsers address bar
  //https://docs.google.com/spreadsheets/d/File_ID_is_here/edit#gid=0
};


Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow