mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2026-07-18 07:42:55 +03:00
+ default credentials support
https://googleapis.dev/python/google-auth/latest/reference/google.auth.html#google.auth.default https://developers.google.com/identity/protocols/application-default-credentials
This commit is contained in:
@@ -86,8 +86,7 @@ def main():
|
||||
if 'logging' in config:
|
||||
logging.config.dictConfig(config['logging'])
|
||||
|
||||
srv_acc_file = config['service_account']
|
||||
service = GoogleCalendarService.from_srv_acc_file(srv_acc_file)
|
||||
service = GoogleCalendarService.from_config(config)
|
||||
|
||||
if 'list' == args.command:
|
||||
list_calendars(service)
|
||||
|
||||
Reference in New Issue
Block a user