Skip to content

Commit e7a3a99

Browse files
author
snippetbucket
committed
boing.com, confluence with nodejs with external file
1 parent 553f5c2 commit e7a3a99

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nodejs/delete-confluence-space-delete.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
77
*/
88
const https = require('https');
9+
const ex = require('./sb-config.js');
10+
const cnf = ex.config();
11+
12+
913
/**
1014
* HOW TO Make an HTTP Call - GET
1115
*/
1216
// options for GET
1317

14-
var btoken = Buffer("test1"+':'+"sb@123").toString('base64');
18+
var btoken = Buffer(cnf.user+':'+cnf.password).toString('base64');
1519

1620
var optionsget = {
17-
host: '192.168.1.119',
21+
host: cnf.host,
1822
proto: 'https',
1923
port : 443,
2024
path: '/rest/api/space/tta',

0 commit comments

Comments
 (0)