This is a client for the Confluence REST API.
Metacello new
githubUser: 'Evref-BL' project: 'Confluence-Pharo-API' commitish: 'main' path: 'src';
baseline: 'ConfluencePharoAPI';
load
The first step before querying is to connect to the Confluence API.
On the official atlassian Confluence, perform the following script:
confluenceAPI := ConfluencePharoAPI new.
confluenceAPI endpoint: '<your endpoint>'.
confluenceAPI basePath: '<basePath>/rest/api/latest/'.
confluenceAPI beHttps.
confluenceAPI user: '<Your username (can be email)>'.
confluenceAPI apiToken: '<Your apiToken>'.
page := confluenceAPI getContent: <page id>