From 4570e1c2425531d4eea39485a8c389e482d0b524 Mon Sep 17 00:00:00 2001 From: John Bauer Date: Wed, 17 Nov 2021 08:14:28 -0500 Subject: [PATCH] Updated documentation for using personal access token --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8988ea6..e424dbb 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,15 @@ func main() { } ``` + +### Using a Personal Access Token + +To generate a confluence personal access token (PAT) see this article: https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html. Only set the token in the NewAPI function + +``` + api, err := goconfluence.NewAPI("https://.atlassian.net/wiki/rest/api", "", "") +``` + ### Advanced examples see [examples](https://github.com/virtomize/confluence-go-api/tree/master/examples) for some more usage examples