Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -16,17 +16,17 @@ def get_credentials():
|
|
| 16 |
try:
|
| 17 |
# Construct the service account info dictionary
|
| 18 |
service_account_info = {
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
}
|
| 31 |
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
|
| 32 |
creds = Credentials.from_service_account_info(service_account_info, scopes=scope)
|
|
|
|
| 16 |
try:
|
| 17 |
# Construct the service account info dictionary
|
| 18 |
service_account_info = {
|
| 19 |
+
auth_provider_x509_cert_url = os.getenv('AUTH_PROVIDER_X509_CERT_URL')
|
| 20 |
+
auth_uri = os.getenv('AUTH_URI')
|
| 21 |
+
client_email = os.getenv('CLIENT_EMAIL')
|
| 22 |
+
client_id = os.getenv('CLIENT_ID')
|
| 23 |
+
client_x509_cert_url = os.getenv('CLIENT_X509_CERT_URL')
|
| 24 |
+
private_key = os.getenv('PRIVATE_KEY')
|
| 25 |
+
private_key_id = os.getenv('PRIVATE_KEY_ID')
|
| 26 |
+
project_id = os.getenv('PROJECT_ID')
|
| 27 |
+
service_account_type = os.getenv('SERVICE_ACCOUNT_TYPE')
|
| 28 |
+
token_uri = os.getenv('TOKEN_URI')
|
| 29 |
+
universe_domain = os.getenv('UNIVERSE_DOMAIN')
|
| 30 |
}
|
| 31 |
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
|
| 32 |
creds = Credentials.from_service_account_info(service_account_info, scopes=scope)
|