update example config, start using config in google credentials

This commit is contained in:
Keksike
2017-07-07 12:39:20 +03:00
parent b11b1832e7
commit 18e5855271
2 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"development": {
"stripe": {
"secretKey": "sk_test_xEq4UqxSlnZN7x5nddoorhlD"
"secretKey": ""
},
"slack": {
"token": "",
@@ -9,7 +9,7 @@
"publicChannel": ""
},
"github": {
"token": "cdb4aaae8452d1ba70790c1350ca7f0772f19d3d"
"token": ""
},
"twitter": {
"consumerKey": "",
@@ -18,7 +18,11 @@
"tokenSecret": ""
},
"google": {
"spreadsheet_id": "1BUL1pjaXVlO5MRuOk-W5MEmKqxfzGnj7eFMif8tIVaU"
"spreadsheet_id": "",
"credentials": {
"client_email": "",
"private_key": ""
}
}
},
"production": {

View File

@@ -18,7 +18,7 @@ function addNewMemberToSheets(name, email, residence, slackHandle) {
function setAuth(step) {
console.log('Start Google Spreadsheed auth.');
var creds = require('../Koodiklinikka-f802649bba5e.json');
doc.useServiceAccountAuth(creds, step);
doc.useServiceAccountAuth(config.google.credentials, step);
},
function getInfoAndWorksheets(step) {
console.log('Start Google Spreadsheet info fetch.');