Confluence API integration with SAP CPI retrieve HTML payload with attachment.

antony_ferminus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2023

Hello,

I am working on a project where i use SAP CPI to get Confluence API result and send it to a third party system.

For search and content id retrieve result are working fine.

Now i need to retrieve a full html page content and the attachment retrieve from Confluence and send the 3rd part the HTML payload that they can include in an IFrame.

I get the html content and the attachment urls by the urls below.

https://confluence.xxx.xx/rest/api/content/19333879899?expand=body.storage

https://confluence..xxx.xx/rest/api/content/19333879899/child/attachment

I use the confluence token to connect the Confluence API in SAP CPI.

My question are:

1. Is it possible to get the HTML payload through the API with the attachment and send it to the 3rd party with as it shown in confluence.

2. Is the only token from confluence is enough to do this?

3. Do it have to download the attachment is another location?

4. Any Groovy script to achieve this target?

Thanks in advance for any useful response.

 

Regards,

Antony

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events