You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task= response.parse() # get the object that `tasks.list()` would have returned
253
-
print(task.items)
250
+
me= response.parse() # get the object that `users.me.retrieve()` would have returned
251
+
print(me.additional_credits_balance_usd)
254
252
```
255
253
256
254
These methods return an [`APIResponse`](https://github.com/browser-use/browser-use-python/tree/main/src/browser_use_sdk/_response.py) object.
@@ -264,7 +262,7 @@ The above interface eagerly reads the full response body when you make the reque
264
262
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
265
263
266
264
```python
267
-
with client.tasks.with_streaming_response.list() as response:
265
+
with client.users.me.with_streaming_response.retrieve() as response:
268
266
print(response.headers.get("X-My-Header"))
269
267
270
268
for line in response.iter_lines():
@@ -320,7 +318,6 @@ import httpx
320
318
from browser_use_sdk import BrowserUse, DefaultHttpxClient
0 commit comments