Skip to content

Rest api implementation in golang of atlassian's confluence wiki

License

Notifications You must be signed in to change notification settings

c-seeger/confluence-go-api

This branch is 78 commits behind Virtomize/confluence-go-api:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Carsten Seeger
Jul 28, 2020
84051e7 · Jul 28, 2020

History

58 Commits
Jul 28, 2020
Jul 28, 2020
Mar 20, 2019
Apr 15, 2020
Jul 2, 2019
Jul 28, 2020
Jun 29, 2018
Jul 28, 2020
Mar 20, 2019
Mar 20, 2019
Jul 8, 2020
Jul 8, 2020
Jul 28, 2020
Jul 28, 2020
Jul 28, 2020
Apr 15, 2020
Apr 15, 2020
Mar 20, 2019
Jul 8, 2020
Jul 8, 2020
Mar 21, 2019
Mar 21, 2019
May 8, 2019
May 8, 2019
Jul 8, 2020
Mar 21, 2019
Mar 21, 2019

Repository files navigation

confluence-go-api

Donate GoDoc Go Report Card License Build Status Built with Mage

is a Confluence REST API client implementation written in GOLANG.

Supportet Features

  • get, update, delete content
  • get comments, attachments, children of content objects, history, watchers
  • get, add ,delete labels
  • get user information
  • search using CQL

If you miss some feature implementation, feel free to open an issue or send pull requests. I will take look as soon as possible.

Installation

If you already installed GO on your system and configured it properly than its simply:

go get github.com/virtomize/confluence-go-api

If not follow these instructions.

Usage

Simple example

package main

import (
  "fmt"
  "log"

  "github.com/virtomize/confluence-go-api"
)

func main() {

  // initialize a new api instance
  api, err := goconfluence.NewAPI("https://<your-domain>.atlassian.net/wiki/rest/api", "<username>", "<api-token>")
  if err != nil {
    log.Fatal(err)
  }

  // get current user information
  currentUser, err := api.CurrentUser()
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("%+v\n", currentUser)
}

Advanced examples

see examples for some more usage examples

Code Documentation

You find the full code documentation here.

The Confluence API documentation can be found here.

Contribution

Thank you for participating to this project. Please see our Contribution Guidlines for more information.

About

Rest api implementation in golang of atlassian's confluence wiki

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%