Download a textfile from Google Drive with Corona

Created a simple plain textfile on Google drive, made it public. Trying to read it from an app using network.request.

Google Drive gives me this link:

https://docs.google.com/file/d/0B9MOZHulGlCTUkxyYVBsZVdvUHM/edit

When using …

network.request( “https://docs.google.com/file/d/0B9MOZHulGlCTUkxyYVBsZVdvUHM/edit”, “GET”, networkListener,  params )

… It just gives me a 70k HTML source instead of the file itself.

Anybody ?

gdocs isn’t intended to serve “raw” files, but… you can figure it out by actually downloading it in your browser, then check browser’s downloads list and copy the full link. but i’d use with caution, cuz who knows if/when that deep link could change??

I would start by reading some of the google drive api docs https://developers.google.com/drive/v2/reference/

gdocs isn’t intended to serve “raw” files, but… you can figure it out by actually downloading it in your browser, then check browser’s downloads list and copy the full link. but i’d use with caution, cuz who knows if/when that deep link could change??

I would start by reading some of the google drive api docs https://developers.google.com/drive/v2/reference/