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
*[get](docs/sdks/pushoperations/README.md#get) - Get push operation
155
-
*[list](docs/sdks/pushoperations/README.md#list) - List push operations
156
66
<!-- End Available Resources and Operations [operations] -->
157
67
158
68
@@ -162,9 +72,9 @@ if res.company is not None:
162
72
<!-- Start Retries [retries] -->
163
73
## Retries
164
74
165
-
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.
75
+
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.
166
76
167
-
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
77
+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
168
78
```python
169
79
import codatsyncpayables
170
80
from codatsyncpayables.models import shared
@@ -177,8 +87,8 @@ s = codatsyncpayables.CodatSyncPayables(
177
87
)
178
88
179
89
req = shared.CompanyRequestBody(
180
-
description='Requested early access to the new financing scheme.',
181
90
name='Bank of Dave',
91
+
description='Requested early access to the new financing scheme.',
182
92
)
183
93
184
94
res = s.companies.create(req,
@@ -189,7 +99,7 @@ if res.company is not None:
189
99
pass
190
100
```
191
101
192
-
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
102
+
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:
193
103
```python
194
104
import codatsyncpayables
195
105
from codatsyncpayables.models import shared
@@ -203,8 +113,8 @@ s = codatsyncpayables.CodatSyncPayables(
203
113
)
204
114
205
115
req = shared.CompanyRequestBody(
206
-
description='Requested early access to the new financing scheme.',
207
116
name='Bank of Dave',
117
+
description='Requested early access to the new financing scheme.',
208
118
)
209
119
210
120
res = s.companies.create(req)
@@ -223,13 +133,13 @@ Handling errors in this SDK should largely match your expectations. All operati
from codatsyncpayables.models importerrors, shared
233
143
234
144
s = codatsyncpayables.CodatSyncPayables(
235
145
security=shared.Security(
@@ -238,18 +148,18 @@ s = codatsyncpayables.CodatSyncPayables(
238
148
)
239
149
240
150
req = shared.CompanyRequestBody(
241
-
description='Requested early access to the new financing scheme.',
242
151
name='Bank of Dave',
152
+
description='Requested early access to the new financing scheme.',
243
153
)
244
154
245
155
res =None
246
156
try:
247
157
res = s.companies.create(req)
248
158
except errors.ErrorMessage as e:
249
-
print(e) # handle exception
159
+
# handle exception
250
160
raise(e)
251
161
except errors.SDKError as e:
252
-
print(e) # handle exception
162
+
# handle exception
253
163
raise(e)
254
164
255
165
if res.company isnotNone:
@@ -283,8 +193,8 @@ s = codatsyncpayables.CodatSyncPayables(
283
193
)
284
194
285
195
req = shared.CompanyRequestBody(
286
-
description='Requested early access to the new financing scheme.',
287
196
name='Bank of Dave',
197
+
description='Requested early access to the new financing scheme.',
288
198
)
289
199
290
200
res = s.companies.create(req)
@@ -310,8 +220,8 @@ s = codatsyncpayables.CodatSyncPayables(
310
220
)
311
221
312
222
req = shared.CompanyRequestBody(
313
-
description='Requested early access to the new financing scheme.',
314
223
name='Bank of Dave',
224
+
description='Requested early access to the new financing scheme.',
315
225
)
316
226
317
227
res = s.companies.create(req)
@@ -325,7 +235,7 @@ if res.company is not None:
325
235
<!-- Start Custom HTTP Client [http-client] -->
326
236
## Custom HTTP Client
327
237
328
-
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.
238
+
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.
329
239
330
240
For example, you could specify a header for every request that this sdk makes as follows:
331
241
```python
@@ -361,8 +271,8 @@ s = codatsyncpayables.CodatSyncPayables(
361
271
)
362
272
363
273
req = shared.CompanyRequestBody(
364
-
description='Requested early access to the new financing scheme.',
365
274
name='Bank of Dave',
275
+
description='Requested early access to the new financing scheme.',
0 commit comments