Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evref-bl/confluence-pharo-api


https://github.com/evref-bl/confluence-pharo-api

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# Confluence-Pharo-API

This is a client for the [Confluence REST API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/#about).

## Installation

```st
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:

```smalltalk
confluenceAPI := ConfluencePharoAPI new.
confluenceAPI endpoint: ''.
confluenceAPI basePath: '/rest/api/latest/'.
confluenceAPI beHttps.

confluenceAPI user: ''.
confluenceAPI apiToken: ''.
```

## Example

### Get information about one page

```smalltalk
page := confluenceAPI getContent:
```