This PR adds support for creating and deleting API tokens using the axiom-py package.
The dataclasses for request and response structures are in a new axiom/tokens.py file, and the API calls themselves are in the client logic.
Test Plan
Using a test script, call the create_api_token function to create a new token with arbitrary attributes. Check that the token was created in Axiom, then delete it with the delete_api_token function.
Summary
This PR adds support for creating and deleting API tokens using the
axiom-py
package.The dataclasses for request and response structures are in a new
axiom/tokens.py
file, and the API calls themselves are in the client logic.Test Plan
Using a test script, call the
create_api_token
function to create a new token with arbitrary attributes. Check that the token was created in Axiom, then delete it with thedelete_api_token
function.I added a pytest, too.