Search code examples
c#google-drive-apigoogle-docs-api

How to open and edit a shared google doc in an internal/custom editor using google API?


I've created a Google Service Account and sharing google documents with different users with different permissions(writer, commenter, and reader) using Google.Apis.Docs.v1 and Google.Apis.Drive.v3 Nuget packages.

When I'm sharing, an email generated and user can click on the link in that email and open the document in new google doc tab.

I know we can turn off the email when we share the document. We don't want to redirect the user to google doc tab. Our requirement is to open the document in an internal custom editor and should use the google's editing functionality using their API. Please guide me to achieve this.

Thanks in advance


Solution

  • Enable Api for the account which will be run by the .NET application here and follow the code sample.

    Here, check what are the api commands you need and associate them to your internal editor events. They will enable you to create and edit the document.

    You can see more samples HERE, HERE with video, and this question.