Skip to content

Commit

Permalink
Remove default spreadsheet key.
Browse files Browse the repository at this point in the history
  • Loading branch information
triketora committed Feb 25, 2018
1 parent ac1cd0a commit 1c837d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ of `data.txt` and submit them to the Google spreadsheet.

Something like this:

python2 update_script.py -d data.txt

You can pass it in to your own spreadsheet by creating your own
project in the [Google Developers
Console](https://console.developers.google.com/), generating a client
ID for a web application with redirect URI http://localhost:8080/,
saving those credentials into `client_secrets.json`, and running the
script with your own spreadsheet key `SS_KEY` specified:

python2 update_script.py -d data.txt -s $SS_KEY

Where `SS_KEY` is the key found in a Google Docs spreadsheet URL:
You can pass it in to your own spreadsheet by creating your own project in the
[Google Developers Console](https://console.developers.google.com/), generating
a client ID for a web application with redirect URI http://localhost:8080/,
saving those credentials into `client_secrets.json`, and running the script with
your own spreadsheet key `SS_KEY` specified, where `SS_KEY` is the key found in
a Google Docs spreadsheet URL:

https://docs.google.com/spreadsheet/ccc?key=$SS_KEY

Expand Down
2 changes: 1 addition & 1 deletion update_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def update_ss_from_file(ss_key, worksheet_id, data_filename):
flags = parser.parse_args()
client_secrets_filename = flags.client_secrets_filename or CLIENT_SECRETS_FILENAME
data_filename = flags.data_filename
ss_key = flags.spreadsheet_key or SS_KEY
ss_key = flags.spreadsheet_key

init_ss_client(client_secrets_filename, flags)
update_ss_from_file(ss_key, WORKSHEET_ID, data_filename)

0 comments on commit 1c837d6

Please sign in to comment.