-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run headless by making it load from created credential json file #395
Comments
Hi, Your code is using the OAtuh 2.0 to get the permissions to use Google Photos API. The My best suggestion is to follow the Getting started documentation. Let me know if there's a problem when using these credentials. |
I can use the above code: |
Currently, I can't imagine how to re-use the credentials of another program to authenticate |
Not of another problem, that function is specifically used to get the token for gphotos-uploader-cli, because I want to try to make it get the token without going to localhost link. Got the credentials, now just need gphotos-uploader-cli to get the token from it. |
@pacoorozco could you help me with this?, could you please try gphotos-uploader-cli on Google Colab, I'm sure there's a demand to upload medias from Google Drive to Google Photos through Google Colab. |
Hi @mikebilly AFAIK Google Colab is a python environment to set up Notebooks and run python scripts. I've never used it, so I don't know how it should work in order to run a go CLI, like If you were able to mount the Google Drive to a folder, then you can use |
@pacoorozco it's a headless environment, which means doing authentication is very challenging as it can't access localhost. Still looking for a way to make |
I understand the complexity of running this script in a headless environment. In fact, this script was never thought to be run in a headless setup, because the authentication is not easy to be implemented. In Google Colab they are taking advantage of the fact that their service is in the Google scope 😅 |
I'm trying to upload medias from mounted Google Drive on Google Colab, this is my code to save the credential file:
and then run:
this code creates the credential json file, for example, it creates:
/content/drive/MyDrive/gphotos-uploader/credentials/1/credentials_for_1.json
in my case.how to make gphotos-uploader-cli use my
credentials_for_1.json
which looks like this:The text was updated successfully, but these errors were encountered: