Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evref-bl/confluence-pharo-api
https://github.com/evref-bl/confluence-pharo-api
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/evref-bl/confluence-pharo-api
- Owner: Evref-BL
- Created: 2024-06-27T15:50:44.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T12:12:11.000Z (5 months ago)
- Last Synced: 2024-08-03T11:11:05.483Z (5 months ago)
- Language: Smalltalk
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:
```