Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Doc API's document with no access permissions

Vit792
New Member

Hello there, 

I'm fairly new to coding and especially new to Google's Cloud project space.

I'm not sure I'm 100% in the correct section, please link me to the right one if this post is in the wrong place.
I'll tell you what I did to hopefully have an answer. I created a Python file that uses OAuth2 and GoogleApiClient.Discovery libraries to create a Google Doc document after scraping a certain web page and getting the content out of it. The code works, I receive a message with the document Id and the link to the Doc but when I access the link I have no permissions and can't access the doc. After a bit of research I found out the "Credentials" section on google cloud and was shown the owner and the service account details for the project. The email I use to access the generated doc is "owner", plus I made a new one both "editor and owner" and that doesn't work as well. My last attempt was to write in the phython file a bunch of code to allow me to access the document "updateSharingSettings" in json format but I receive error code 400 "wrong payload" or similar. I don't know what to do next and how to solve the issue.

Thanks anyone who can give an idea or hopefully a solution to this.
Vittorio

0 0 297
0 REPLIES 0