I want to create a file with content using Google Drive API v3. I have authenticated via OAuth and have the Drive API loaded. Statements like the following work (but produce
this works fine usin v3:
var fileMetadata = { 'name' : 'MaxBarrass', 'mimeType' : 'application/vnd.google-apps.folder' }; gapi.client.drive.files.create({ resource: fileMetadata, fields: 'id' }).execute(function(resp, raw_resp) { console.log('Folder Id: ', resp.id); });