I'd like to upload some photos to my google photos with my simple Python code.
So, first, I creat my project in google API and I enable "Google Photo" in Library.
After that, I create OAuth 2.0 Client ID. I chose "Web application" and I input:
- http://localhost:8080 for ‘Authorized JavaScript origins’.
- http://localhost:8080/ for ‘Authorized redirect URIs’
Here I think that I finish my parameters in google API, so I download the .Json file and I start my Python code:
'''from gphotospy import authorize
CLIENT_SECRET_FILE = "gphoto_oauth.json"
service = authorize.init(CLIENT_SECRET_FILE)'''
However, I obtained this message error in French:
"OSError: [WinError 10013] Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été tentée"
I changed the 8080 port as indicated in other site, but I obtained the same message error.
I think that the problème is in "http://localhost:8080" because I don't know why I use the localhost.
So, did you have any idea.
question from:
https://stackoverflow.com/questions/66054458/upload-photo-to-google-photo-by-google-api-and-python 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…