public static async System.Threading.Tasks.Task <UnityGoogleDrive.Data.File> GetFileWithContent(string id, string mimeType)
    {
        GoogleDriveFiles.ExportRequest export = GoogleDriveFiles.Export(id, mimeType);
        await export.Send();

        return(export.ResponseData);
    }
Example #2
0
 private void ExportDocument()
 {
     request = GoogleDriveFiles.Export(fileId, "text/plain");
     request.Send().OnDone += file => result = Encoding.UTF8.GetString(file.Content);
 }