In our application users can submit a link to a Google Document (from Google Drive). We want to be able to check whether the document is shared in a way where anyone with the link can access the document. How is that possible (preferably using Javascript).
Such a link could be: https://docs.google.com/a/peergrade.io/document/d/1_PgKkr7e4E1uEE4O_SHswq4tjBDLthg0KxGXjtIMLio/edit?usp=sharing which is not shared for external people.
Our application is running in the browser. The use-case is that students of our application can hand-in a Google Document that other people have to look at. Some students forget to share their document beforehand, which leads to problems. We want to alert the student that their document is not shared correctly.
We don't need to actually access the document, just figure out if it would be accessible to other people.
Using an API would be perfect, but at this point, we only have the link to the document available.