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: sync-for-expenses/README.md
+40-5Lines changed: 40 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
30
30
31
31
req = shared.CompanyRequestBody(
32
32
description='Requested early access to the new financing scheme.',
33
+
groups=[
34
+
shared.GroupItems(
35
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
36
+
),
37
+
],
33
38
name='Bank of Dave',
34
39
)
35
40
@@ -124,9 +129,9 @@ if res.company is not None:
124
129
<!-- Start Retries [retries] -->
125
130
## Retries
126
131
127
-
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
132
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
128
133
129
-
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
134
+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
130
135
```python
131
136
import codatsyncexpenses
132
137
from codatsyncexpenses.models import shared
@@ -140,6 +145,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
140
145
141
146
req = shared.CompanyRequestBody(
142
147
description='Requested early access to the new financing scheme.',
148
+
groups=[
149
+
shared.GroupItems(
150
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
151
+
),
152
+
],
143
153
name='Bank of Dave',
144
154
)
145
155
@@ -151,7 +161,7 @@ if res.company is not None:
151
161
pass
152
162
```
153
163
154
-
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
164
+
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
155
165
```python
156
166
import codatsyncexpenses
157
167
from codatsyncexpenses.models import shared
@@ -166,6 +176,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
166
176
167
177
req = shared.CompanyRequestBody(
168
178
description='Requested early access to the new financing scheme.',
179
+
groups=[
180
+
shared.GroupItems(
181
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
182
+
),
183
+
],
169
184
name='Bank of Dave',
170
185
)
171
186
@@ -185,7 +200,7 @@ Handling errors in this SDK should largely match your expectations. All operati
@@ -201,6 +216,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
201
216
202
217
req = shared.CompanyRequestBody(
203
218
description='Requested early access to the new financing scheme.',
219
+
groups=[
220
+
shared.GroupItems(
221
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
222
+
),
223
+
],
204
224
name='Bank of Dave',
205
225
)
206
226
@@ -246,6 +266,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
246
266
247
267
req = shared.CompanyRequestBody(
248
268
description='Requested early access to the new financing scheme.',
269
+
groups=[
270
+
shared.GroupItems(
271
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
272
+
),
273
+
],
249
274
name='Bank of Dave',
250
275
)
251
276
@@ -273,6 +298,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
273
298
274
299
req = shared.CompanyRequestBody(
275
300
description='Requested early access to the new financing scheme.',
301
+
groups=[
302
+
shared.GroupItems(
303
+
id='60d2fa12-8a04-11ee-b9d1-0242ac120002',
304
+
),
305
+
],
276
306
name='Bank of Dave',
277
307
)
278
308
@@ -287,7 +317,7 @@ if res.company is not None:
287
317
<!-- Start Custom HTTP Client [http-client] -->
288
318
## Custom HTTP Client
289
319
290
-
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
320
+
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
291
321
292
322
For example, you could specify a header for every request that this sdk makes as follows:
293
323
```python
@@ -324,6 +354,11 @@ s = codatsyncexpenses.CodatSyncExpenses(
324
354
325
355
req = shared.CompanyRequestBody(
326
356
description='Requested early access to the new financing scheme.',
0 commit comments