diff options
Diffstat (limited to 'tap_google_sheets/__init__.py')
-rwxr-xr-x[-rw-r--r--] | tap_google_sheets/__init__.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tap_google_sheets/__init__.py b/tap_google_sheets/__init__.py index f97d4b8..15db05f 100644..100755 --- a/tap_google_sheets/__init__.py +++ b/tap_google_sheets/__init__.py | |||
@@ -12,12 +12,9 @@ from tap_google_sheets.sync import sync | |||
12 | LOGGER = singer.get_logger() | 12 | LOGGER = singer.get_logger() |
13 | 13 | ||
14 | REQUIRED_CONFIG_KEYS = [ | 14 | REQUIRED_CONFIG_KEYS = [ |
15 | 'client_id', | 15 | 'credentials_file', |
16 | 'client_secret', | ||
17 | 'refresh_token', | ||
18 | 'spreadsheet_id', | 16 | 'spreadsheet_id', |
19 | 'start_date', | 17 | 'start_date' |
20 | 'user_agent' | ||
21 | ] | 18 | ] |
22 | 19 | ||
23 | def do_discover(client, spreadsheet_id): | 20 | def do_discover(client, spreadsheet_id): |
@@ -33,10 +30,7 @@ def main(): | |||
33 | 30 | ||
34 | parsed_args = singer.utils.parse_args(REQUIRED_CONFIG_KEYS) | 31 | parsed_args = singer.utils.parse_args(REQUIRED_CONFIG_KEYS) |
35 | 32 | ||
36 | with GoogleClient(parsed_args.config['client_id'], | 33 | with GoogleClient(parsed_args.config['credentials_file']) as client: |
37 | parsed_args.config['client_secret'], | ||
38 | parsed_args.config['refresh_token'], | ||
39 | parsed_args.config['user_agent']) as client: | ||
40 | 34 | ||
41 | state = {} | 35 | state = {} |
42 | if parsed_args.state: | 36 | if parsed_args.state: |