Contents:
Returns a Confluence object by loading the connection details from the config.ini file.
Parameters: |
|
---|---|
Returns: | Confluence – an instance to a Confluence object. |
Raises : | EnvironmentError |
Usage:
>>> from confluence import Confluence
>>>
>>> conf = Confluence(profile='confluence')
>>> conf.storePageContent("test","test","hello world!")
Also create a config.ini like this and put it in current directory, user home directory or PYTHONPATH.
[confluence]
url=https://confluence.atlassian.com
# only the `url` is mandatory
user=...
pass=...
Converts a wiki text to it’s XML/HTML format. Useful if you prefer to generate pages using wiki syntax instead of XML.
Still, remember that once you cannot retrieve the original wiki text, as confluence is not storing it anymore. Due to this wiki syntax is usefull only for computer generated pages.
Warning: this works only with Conflucence 4.0 or newer, on older versions it will raise an error.
Parameters: | markup – |
---|---|
Returns: |
Returns a page object as a dictionary.
Parameters: |
|
---|---|
Returns: | dictionary. result[‘content’] contains the body of the page. |
Retuns the numeric id of a confluence page.
Parameters: |
|
---|---|
Returns: | Integer: page numeric id |
Obtains the HTML content of a wiki page.
Parameters: |
|
---|---|
Returns: | string: HTML content |
Modifies the content of a Confluence page.
Parameters: |
|
---|---|
Returns: | bool: True if succeeded |