Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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!
Oct 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