Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. var Confluence = require("confluence-api");
  2. var config = {
  3. username: "<user>",
  4. password: "<pw>",
  5. baseUrl: "https://<page>.atlassian.net",
  6. };
  7. var confluence = new Confluence(config);
  8. confluence.getSpace(<space name>, function(err, data) {
  9. // do something interesting with data; for instance,
  10. // data.results[0].body.storage.value contains the stored markup for the first
  11. // page found in space 'space-name' matching page title 'page-title'
  12. console.log(data)
  13. console.log(err)
  14. console.log(data.results[0].id);
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement