File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ export HYPERBROWSER_API_KEY="your_api_key"
2424export HYPERBROWSER_BASE_URL=" https://api.hyperbrowser.ai" # optional
2525```
2626
27- You can also pass custom headers (for tracing/correlation) via ` ClientConfig ` :
27+ You can also pass custom headers (for tracing/correlation) either via
28+ ` ClientConfig ` or directly to the client constructor.
2829
2930``` python
3031from hyperbrowser import ClientConfig, Hyperbrowser
@@ -38,6 +39,18 @@ with Hyperbrowser(config=config) as client:
3839 ...
3940```
4041
42+ ``` python
43+ from hyperbrowser import Hyperbrowser
44+
45+ with Hyperbrowser(
46+ api_key = " your_api_key" ,
47+ headers = {" X-Correlation-Id" : " req-123" },
48+ ) as client:
49+ ...
50+ ```
51+
52+ > If you pass ` config=... ` , do not also pass ` api_key ` , ` base_url ` , or ` headers ` .
53+
4154## Clients
4255
4356The SDK provides both sync and async clients with mirrored APIs:
You can’t perform that action at this time.
0 commit comments