Exemplo n.º 1
0
 private void GetFile()
 {
     request        = GoogleDriveFiles.Get(fileId);
     request.Fields = new List <string> {
         "name, size, createdTime"
     };
     request.Send().OnDone += BuildResultString;
 }
Exemplo n.º 2
0
 private void GetInfoAndDownloadAudio()
 {
     // First, we should find out what the encoding format of the audio is.
     // In case you know that beforehand, you can use GoogleDriveFiles.DownloadAudio(fileId, audioType) right away.
     getRequest        = GoogleDriveFiles.Get(audioFileId);
     getRequest.Fields = new List <string> {
         "id, mimeType"
     };
     getRequest.Send().OnDone += DownloadAudio;
 }