node.js - node js call to confluence API returns null -


hi new using node , rest api calls.

i found node js wrapper confluence apis: https://github.com/johnpduane/confluence-api#confluence+getspace

var confluence = require("confluence-api"); var config = { username: "<user>", password: "<pw>", baseurl:  "https://<page>.atlassian.net", }; var confluence = new confluence(config); confluence.getspace(<space name>, function(err, data) { // interesting data; instance, // data.results[0].body.storage.value contains stored markup first // page found in space 'space-name' matching page title 'page-title' console.log(data) console.log(err) console.log(data.results[0].id); }); 

the return of null. not sure means -- not connecting through confluence page? misunderstanding how use api calls?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -