11"""
2- # Getting Started
3-
42StackOne AI provides a unified interface for accessing various SaaS tools through AI-friendly APIs.
53
64## Installation
75
86```bash
7+ # Using pip
98pip install stackone-ai
10- ```
119
10+ # Using uv
11+ uv add stackone-ai
12+ ```
1213
13- ## Quick Start
14+ ## How to use these docs
1415
15- Here's a simple example. All examples are complete and runnable.
16+ All examples are complete and runnable.
17+ We use [uv](https://docs.astral.sh/uv/getting-started/installation/) for python dependency management.
1618
17- You can even run the example directly from the command line :
19+ To run this example, install the dependencies (one-time setup) and run the script :
1820
1921```bash
22+ uv sync --all-extras
2023uv run examples/index.py
2124```
22- """
2325
24- from dotenv import load_dotenv
26+ ## Package Usage
27+ """
2528
2629from stackone_ai import StackOneToolSet
2730
2831"""
29- ## Authenticate with StackOne
32+ ## Authentication
33+
34+ Set the `STACKONE_API_KEY` environment variable:
3035
3136```bash
3237export STACKONE_API_KEY=<your-api-key>
3338```
3439
3540or load from a .env file:
3641"""
42+ from dotenv import load_dotenv
3743
3844load_dotenv ()
3945
4046"""
4147## Account IDs
4248
4349StackOne uses account IDs to identify different integrations.
44- See the example [stackone_account_ids.py](stackone_account_ids.py) for more details.
45- This example will hardcode the account ID.
50+ See the example [stackone-account-ids.md](stackone-account-ids.md) for more details.
51+
52+ This example will hardcode the account ID:
4653"""
4754
4855account_id = "45072196112816593343"
49- employee_id = "c28xIQaWQ6MzM5MzczMDA2NzMzMzkwNzIwNA"
5056
5157
5258def quickstart ():
@@ -56,11 +62,11 @@ def quickstart():
5662 tools = toolset .get_tools ("hris_*" , account_id = account_id )
5763
5864 # Use a specific tool
59- employee_tool = tools .get_tool ("hris_get_employee " )
65+ employee_tool = tools .get_tool ("hris_list_employees " )
6066 assert employee_tool is not None
6167
62- employee = employee_tool .execute ({ "id" : employee_id } )
63- assert employee is not None
68+ employees = employee_tool .execute ()
69+ assert employees is not None
6470
6571
6672if __name__ == "__main__" :
@@ -71,8 +77,8 @@ def quickstart():
7177
7278Check out some more documentation:
7379
74- - [Error Handling](error-handling.md)
7580- [StackOne Account IDs](stackone-account-ids.md)
81+ - [Error Handling](error-handling.md)
7682- [Available Tools](available-tools.md)
7783- [File Uploads](file-uploads.md)
7884
0 commit comments