mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 11:44:12 +00:00
update example config, start using config in google credentials
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user