Skip to content

Commit

Permalink
doc: Add API token example
Browse files Browse the repository at this point in the history
  • Loading branch information
bahlo committed Nov 12, 2024
1 parent 547d72b commit 46df294
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ func main() {

client, err := axiom.NewClient(
// If you don't want to configure your client using the environment,
// pass credentials explicitly:
// axiom.SetPersonalTokenConfig("AXIOM_TOKEN", "AXIOM_ORG_ID"),
// pass credentials explicitly.
// Personal token:
// axiom.SetPersonalTokenConfig("xapt-xyz", "acme-1234"),
// API token:
// axiom.SetToken("xaat-xyz"),
)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 46df294

Please sign in to comment.