Exemplo n.º 1
0
    public IEnumerator Test004_FilesGet()
    {
        var request = GoogleDriveFiles.Get(createdFileId);

        yield return(request.Send());

        Assert.IsFalse(request.IsError);
    }
Exemplo n.º 2
0
 private void GetFile()
 {
     request        = GoogleDriveFiles.Get(fileId);
     request.Fields = new List <string> {
         "name, size, createdTime"
     };
     request.Send().OnDone += BuildResultString;
 }
    private void DownloadImage()
    {
        var getRequest = GoogleDriveFiles.Get(fileId);

        getRequest.Fields = new List <string> {
            "id, imageMediaMetadata(width, height)"
        };
        getRequest.Send().OnDone += HandleImageMetaReceived;
    }
Exemplo n.º 4
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;
 }