Skip to content

Commit

Permalink
Updated documentation for using personal access token
Browse files Browse the repository at this point in the history
  • Loading branch information
WTIGER001 committed Nov 17, 2021
1 parent 64f52c7 commit 4570e1c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://<your-domain>.atlassian.net/wiki/rest/api", "", "<personal-access-token>")
```

### Advanced examples

see [examples](https://github.com/virtomize/confluence-go-api/tree/master/examples) for some more usage examples
Expand Down

0 comments on commit 4570e1c

Please sign in to comment.