The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events