mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 11:44:12 +00:00
add config example
This commit is contained in:
45
config.example.json
Normal file
45
config.example.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"development": {
|
||||
"stripe": {
|
||||
"secretKey": "sk_test_xEq4UqxSlnZN7x5nddoorhlD"
|
||||
},
|
||||
"slack": {
|
||||
"token": "",
|
||||
"privateChannel": "",
|
||||
"publicChannel": ""
|
||||
},
|
||||
"github": {
|
||||
"token": "cdb4aaae8452d1ba70790c1350ca7f0772f19d3d"
|
||||
},
|
||||
"twitter": {
|
||||
"consumerKey": "",
|
||||
"consumerSecret": "",
|
||||
"token": "",
|
||||
"tokenSecret": ""
|
||||
},
|
||||
"google": {
|
||||
"spreadsheet_id": "1BUL1pjaXVlO5MRuOk-W5MEmKqxfzGnj7eFMif8tIVaU"
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
"stripe": {
|
||||
"secretKey": ""
|
||||
},
|
||||
"slack": {
|
||||
"token": "",
|
||||
"privateChannel": "",
|
||||
"publicChannel": ""
|
||||
},
|
||||
"github": {
|
||||
"token": ""
|
||||
},
|
||||
"twitter": {
|
||||
"consumerKey": "",
|
||||
"consumerSecret": "",
|
||||
"token": "",
|
||||
"tokenSecret": ""
|
||||
}
|
||||
},
|
||||
"all": {
|
||||
}
|
||||
}
|
||||
@@ -5,16 +5,15 @@ var GoogleSpreadsheet = require('google-spreadsheet');
|
||||
var async = require('async');
|
||||
var moment = require('moment');
|
||||
|
||||
// spreadsheet key is the long id in the sheets URL
|
||||
var doc = new GoogleSpreadsheet('1BUL1pjaXVlO5MRuOk-W5MEmKqxfzGnj7eFMif8tIVaU');
|
||||
var sheet;
|
||||
|
||||
var slack = require('../services/slack');
|
||||
var config = require('../lib/config');
|
||||
var stripe = require('stripe')(config.stripe.secretKey);
|
||||
|
||||
|
||||
function addNewMemberToSheets(name, email, residence, slackHandle) {
|
||||
var doc = new GoogleSpreadsheet(config.google.spreadsheet_id);
|
||||
var sheet;
|
||||
|
||||
async.series([
|
||||
function setAuth(step) {
|
||||
console.log('Start Google Spreadsheed auth.');
|
||||
|
||||
Reference in New Issue
Block a user