With the Advanced Drive Service, there is a parameter for the file content:
Drive.Files.insert(resource, mediaData);//Create a new file
The parameter mediaData can take a blob.
The Advanced Drive Service uses the Google Drive API version 2, but there is now a version 3.
Version 3 doesn't have an "insert" method to create a new file, but instead has a "create" method.
I've been studying the documentation for the version 3 Drive API, but I can't figure out where the file content goes.
The request body doesn't have a parameter for the file content. In the guide, step 3 it states:
Add the file's data to the request body
But how do I do that with a UrlFetchApp.fetch(url,options) call?
I'm assuming that it's in the payload of the options?
But what is the key name for the blob?