Hi,
I was wondering is there a way to surround text in a page and then get that text from that page through an API call to the confluence page?
Any examples?
Thanks
The api doesn't have calls to interrogate the content beyond "get the content".
This is the same as the browser functionality - the page is rendered, then your human says "I'd like to pick out a bit of it that has been flagged in some way" - they search in the content that is in front of them in the browser, not by asking Confluence for it.
So the simple answer is "no", but you can do it - you use the API to fetch the content of the page, then write code that can search for and extract the content for what you are looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you for sharing the answer. But wasn't looking to search. But trying to pull specific text from a specific wiki page.
for example
wikiPage1
<data1>Hello world</data1
api to query page wikiPag1 for the value of data1 results hello world.
hope that clarifies more.
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.