Skip to content

Commit

Permalink
Revert "docs: Remove personal token mention from README"
Browse files Browse the repository at this point in the history
This reverts commit f2cbafb.
  • Loading branch information
bahlo committed Sep 12, 2024
1 parent fb1e962 commit 3ee7584
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Alternatively, if you have the [`pip`](https://pip.pypa.io/) package installed,
pip3 install axiom-py
```

Create an API token with the permissions you need in the
[Axiom settings](https://cloud.axiom.co/profile) and export it as
`AXIOM_TOKEN`.
If you use the [Axiom CLI](https://github.com/axiomhq/cli), run `eval $(axiom config export -f)` to configure your environment variables.

Otherwise create a personal token in [the Axiom settings](https://cloud.axiom.co/profile) and export it as `AXIOM_TOKEN`. Set `AXIOM_ORG_ID` to the organization ID from the settings page of the organization you want to access.

You can also configure the client using options passed to the client constructor:

```py
import axiom_py

client = axiom_py.Client("<api token>")
client = axiom_py.Client("<api token>", "<org id>")
```

Create and use a client like this:
Expand Down

0 comments on commit 3ee7584

Please sign in to comment.