I got an error when I try to get the content of a file (mimetype is "text/csv") stored in my Google drive using Drive.Files.get(fileId,{alt: 'media'}) from a Google apps script (I'm using Google Drive API / REST V2).
The strange thing is that the content of my file seems to be returned inside the message of the error, as follow:
{
"message":"Response Code: 200. Message: id\turl\tthumbnail_url\ttitle\tpublishedAt\tdescription\tchanelId\tcategoryId\ttags\tduration\tdislikeCount\tviewCount\tlikeCount\tcommentCount\r\n....",
"name":"HttpResponseException",
"fileName":"Code",
"lineNumber":142,
"stack":"\tat Code:142 (updateChannelVideos)\n",
"statusCode":200
}
Do you know how I can get the content of my file, from the server side, without using service like UrlFetchApp?
https://www.googleapis.com/auth/drive%22of a scope. It seems that in your situation, there are other scopes that you can use and cannot use. And also if there are such limitations for the methods and APIs, can I ask you about them? I think that providing such materials will help users think of your solutions or workarounds. Can you provide such information? - Tanaike