Skip to content

Commit 7be4329

Browse files
authored
Document auth (#1023)
1 parent a49aa7b commit 7be4329

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ with ApiClient(configuration) as api_client:
4040
print(response)
4141
```
4242

43+
### Authentication
44+
45+
By default the library will use the `DD_API_KEY` and `DD_APP_KEY` environment variables to authenticate against the Datadog API.
46+
To provide your own set of credentials, you need to set some keys on the configuration:
47+
48+
```python
49+
configuration.api_key["apiKeyAuth"] = "<API KEY>"
50+
configuration.api_key["appKeyAuth"] = "<APPLICATION KEY>"
51+
```
52+
4353
### Unstable Endpoints
4454

4555
This client includes access to Datadog API endpoints while they are in an unstable state and may undergo breaking changes. An extra configuration step is required to enable these endpoints:

0 commit comments

Comments
 (0)