Google Apps Scripts: import (upload) media from Google Drive to Google Photos?
问题 I see that we can import (upload) media (photos, videos,...) from Google Drive to Google Photos. My goal is: do this task with code. I have successfully got a list of photos from Google Drive, and I store their IDs in an Array. I have this code: var arrId = [ //Some image id... ]; var length = arrId.length; var driveApplication = DriveApp; for(var i=0;i<length;++i) { var file = driveApplication.getFileById(arrId[i]); //Now I got the file, how can I programmatically import this file to Google