Auto upload to Google Spreadsheet - jawslouis/Battlegrounds-Match-Data GitHub Wiki
Auto-uploading is an optional feature that is disabled by default. Setting this up will take about 20 mins.
Setting up Google API
- Go to Google Developers Console and create a new API project. It will take a few seconds to get ready.
- Go to "Credentials" on the sidebar, click “Create credentials” and select "Service Account Key". After creation, you will automatically download a credential JSON file. Copy the file to the plugins folder (or any other convenient location).
- Back at the Credentials page, select "Manage Service Account" (see below). Copy the email address for the service account and save it somewhere.
- Go to Google Sheets API and enable the API.
- Create a blank Google Spreadsheet. Create two sheets: "MyResults" and "AllBoards".
- Add the service account as an editor, using the email copied in step 3. Copy the Spreadsheet ID, which is the jumble of letters in the URL. Example: docs.google.com/spreadsheets/d/16pcIzB7AsjM4KjJgHTMm3fJdo-4n2eK4PGN8qEJVZh0/edit#gid=0
Plugin Setup
- From the deck tracker toolbar, go to
Plugins -> Battlegrounds Match Data Settings
. This will open the below settings menu. Enable Google Spreadsheet Upload, and fill in the Spreadsheet ID and file location for the JSON credential.
- That's it. You're finally done! Restart Hearthstone Deck Tracker and make sure the plugin is enabled. Your games will now be both saved in a local CSV, and uploaded to your Google spreadsheet.