Hello, I am trying to pull the data from my public space in Confluence
I got the list of pages but there is content missing
Does anyone know how to get the content of these pages?
Please see photos below
While the content is there certainly
From the reference here https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
You need to add the query parameter
?expand=body.storage
Example:
curl -u admin:admin http://localhost:8080/confluence/rest/api/content/3965072?expand=body.storage
in order to have the content of the page
Thanks,
Pramodh
Thank you for reponse @Pramodh M :)
It work now, but I have another issue
While pulling data through postman it returns json object and works fine, while in Hubspot I am trying to use pure JS function to pull the object from Confluence API and it show CORS error or reponse '0' (while mode: no-cors)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pramodh M Is there a way to get the CSS details for the body as well?
I have been able to fetch the body details but it comes up as a plain HTML text.
I'm trying to show the page data but want it to be visually relatable to what is available in confluence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.