Skip to content

Evref-BL/Confluence-Pharo-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Confluence-Pharo-API

This is a client for the Confluence REST API.

Installation

Metacello new
  githubUser: 'Evref-BL' project: 'Confluence-Pharo-API' commitish: 'main' path: 'src';
  baseline: 'ConfluencePharoAPI';
  load

Connect the API to Confluence

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>'.

Example

Get information about one page

page := confluenceAPI getContent: <page id>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published