Search code examples
authenticationcoronasdkpublicgoogle-drive-android-api

Accessing a public google drive without authentication using Corona sdk


I have two public folders in my google drive and I want my app to be able read images from one folder and read and write images to another folder. Is there a way to do this using the google api or any GET method and hopefully without needing to authorize or authenticate the user's google account? Thank you!

It's a cross platform application being developed in Lua using the Corona sdk


Solution

  • Unfortunately, you cannot access a particular drive without any authentication/authorization.

    Every request your application sends to the Drive API must include an authorization token. The token also identifies your application to Google.

    Same question was also raised in this SO post.

    But there is an alternative if you go further in the answer of the SO post. This link maybe useful if you want to try the alternative.