Search code examples
asp.netgoogle-drive-apigoogle-docs

Send content to new Google Doc without Authorization/Authentication


Is there a way to send HTML content to a new Google Doc without credentials for authorization/authentication?

In my ASP.NET app, the user creates formatted HTML content using a tinyMCE text editor. I would like to allow the user to send that content to a new Google Doc via JavaScript function.

Is this possible without knowing the user's Google Drive credentials?


Solution

  • Is this possible without knowing the user's Google Drive credentials?

    Answer:

    Unfortunately no, this is not possible to do.

    More Information:

    Creating a Google Doc requires you use the documents.create endpoint of the Google Docs API. As you can see from the documentation page, it requires one of the following OAuth scopes:

    Using these scopes requires a user to log in with their Google account, and as such calling this method without knowing a user's credentials, is not possible.

    References: