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
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,24 @@ for session in first_page.sessions:
144
144
# Remove `await` for non-async usage.
145
145
```
146
146
147
+
## Nested params
148
+
149
+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
150
+
151
+
```python
152
+
from steel import Steel
153
+
154
+
client = Steel()
155
+
156
+
session = client.sessions.create(
157
+
dimensions={
158
+
"height": 0,
159
+
"width": 0,
160
+
},
161
+
)
162
+
print(session.dimensions)
163
+
```
164
+
147
165
## Handling errors
148
166
149
167
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `steel.APIConnectionError` is raised.
0 commit comments