percolatestudio / meteor-google-api

A simple API encapsulating some common patterns regarding Google's APIs
https://atmospherejs.com/percolate/google-api
MIT License
48 stars 30 forks source link

export-functionality returns null #31

Closed ghost closed 8 years ago

ghost commented 8 years ago

I can't get the https://developers.google.com/drive/v3/reference/files/export functionality to work. My requests return null, but if I execute the same request in Google's API Explorer, it returns the full HTML.

Can anybody help?

getContent: function(id) {
      var options = { 'params':{'mimeType':'text/html'}};
      GoogleApi.get("drive/v3/files/" + id + "/export",options, function(e, r) {
        if(e) {
          console.log(e);
        } else {
          console.log(r);
          return r;
        }
      });
}
ghost commented 8 years ago

Seems to be related to #26 ! If I use @danopia 's danopia:google-api it works, since it supports result.content