Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We need to use the Confluence GUI to create a token to combine your email address.

Code Block
languagelua
-- The main function is the first function called from Iguana.
function main()
   local ApiToken = "5gBXXX5gBjjIjuys5K0S6ggg3u94A2"
   local BaseToken = filter.base64.enc("firstrichard.last@interfacewarewang@interfaceware.com:"..ApiToken)
   local Page = '8752333532184511505'
   local BaseUrl = "https://interfaceware.atlassian.net/wiki/rest/api/";
   
   local Data, Code, Headers = net.http.get{ 
      url = BaseUrl..'content/'..Page,
      get_parameters={
         expand='body.view,body.storage'
      }, 
      headers = {
         Accept="application/json",
         Authorization="Basic "..baseTokenBaseToken
      },
      live = true
   }
   local jsonDataJ = json.parse{data=Data}
   trace(J.body.view.value)
end

Further reading