You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a service account enabled for google drive and sheets. I'm using the example sketch "Adafruit oauth2 test.py" with scopes = ["drive", "spreadsheets"] and the following (I have listed the equivalent key name from the service account JSON file):
When I tried to run in ESP32S2, I could only get "KeyError: 'device_code'" so I brought into desktop python using normal requests library. I added a print statement before line 110 in Adafruit_oauth2.py to see what the response was and it is consistently:
So I want to verify if adafruit_oauth2 is compatible with service accounts, and if it is, what should be used for "google_client_id" and "google_client_secret".
Thanks,
Nick
The text was updated successfully, but these errors were encountered:
I would like to know if the adafruit oauth2 library has ever been tested with a service account. I know that the ID and Secret are valid because they work in jupyter using gspread and oauth2client.service_account libraries.
I have a service account enabled for google drive and sheets. I'm using the example sketch "Adafruit oauth2 test.py" with scopes = ["drive", "spreadsheets"] and the following (I have listed the equivalent key name from the service account JSON file):
secrets["google_client_id"] = "client_id"
secrets["google_client_secret"] = "private_key_id"
When I tried to run in ESP32S2, I could only get "KeyError: 'device_code'" so I brought into desktop python using normal requests library. I added a print statement before line 110 in Adafruit_oauth2.py to see what the response was and it is consistently:
So I want to verify if adafruit_oauth2 is compatible with service accounts, and if it is, what should be used for "google_client_id" and "google_client_secret".
Thanks,
Nick
The text was updated successfully, but these errors were encountered: