@@ -30,12 +30,12 @@ def with_raw_response(self) -> RawAccountsClient:
30
30
def list (
31
31
self ,
32
32
* ,
33
- app_id : typing .Optional [str ] = None ,
34
33
external_user_id : typing .Optional [str ] = None ,
35
34
oauth_app_id : typing .Optional [str ] = None ,
36
35
after : typing .Optional [str ] = None ,
37
36
before : typing .Optional [str ] = None ,
38
37
limit : typing .Optional [int ] = None ,
38
+ app : typing .Optional [str ] = None ,
39
39
include_credentials : typing .Optional [bool ] = None ,
40
40
request_options : typing .Optional [RequestOptions ] = None ,
41
41
) -> SyncPager [Account ]:
@@ -44,9 +44,6 @@ def list(
44
44
45
45
Parameters
46
46
----------
47
- app_id : typing.Optional[str]
48
- The app slug or ID to filter accounts by.
49
-
50
47
external_user_id : typing.Optional[str]
51
48
52
49
oauth_app_id : typing.Optional[str]
@@ -61,6 +58,9 @@ def list(
61
58
limit : typing.Optional[int]
62
59
The maximum number of results to return
63
60
61
+ app : typing.Optional[str]
62
+ The app slug or ID to filter accounts by.
63
+
64
64
include_credentials : typing.Optional[bool]
65
65
Whether to retrieve the account's credentials or not
66
66
@@ -82,20 +82,28 @@ def list(
82
82
client_id="YOUR_CLIENT_ID",
83
83
client_secret="YOUR_CLIENT_SECRET",
84
84
)
85
- response = client.accounts.list()
85
+ response = client.accounts.list(
86
+ external_user_id="external_user_id",
87
+ oauth_app_id="oauth_app_id",
88
+ after="after",
89
+ before="before",
90
+ limit=1,
91
+ app="app",
92
+ include_credentials=True,
93
+ )
86
94
for item in response:
87
95
yield item
88
96
# alternatively, you can paginate page-by-page
89
97
for page in response.iter_pages():
90
98
yield page
91
99
"""
92
100
return self ._raw_client .list (
93
- app_id = app_id ,
94
101
external_user_id = external_user_id ,
95
102
oauth_app_id = oauth_app_id ,
96
103
after = after ,
97
104
before = before ,
98
105
limit = limit ,
106
+ app = app ,
99
107
include_credentials = include_credentials ,
100
108
request_options = request_options ,
101
109
)
@@ -106,7 +114,6 @@ def create(
106
114
app_slug : str ,
107
115
cfmap_json : str ,
108
116
connect_token : str ,
109
- app_id : typing .Optional [str ] = None ,
110
117
external_user_id : typing .Optional [str ] = None ,
111
118
oauth_app_id : typing .Optional [str ] = None ,
112
119
name : typing .Optional [str ] = OMIT ,
@@ -126,9 +133,6 @@ def create(
126
133
connect_token : str
127
134
The connect token for authentication
128
135
129
- app_id : typing.Optional[str]
130
- The app slug or ID to filter accounts by.
131
-
132
136
external_user_id : typing.Optional[str]
133
137
134
138
oauth_app_id : typing.Optional[str]
@@ -156,6 +160,8 @@ def create(
156
160
client_secret="YOUR_CLIENT_SECRET",
157
161
)
158
162
client.accounts.create(
163
+ external_user_id="external_user_id",
164
+ oauth_app_id="oauth_app_id",
159
165
app_slug="app_slug",
160
166
cfmap_json="cfmap_json",
161
167
connect_token="connect_token",
@@ -165,7 +171,6 @@ def create(
165
171
app_slug = app_slug ,
166
172
cfmap_json = cfmap_json ,
167
173
connect_token = connect_token ,
168
- app_id = app_id ,
169
174
external_user_id = external_user_id ,
170
175
oauth_app_id = oauth_app_id ,
171
176
name = name ,
@@ -210,6 +215,7 @@ def retrieve(
210
215
)
211
216
client.accounts.retrieve(
212
217
account_id="account_id",
218
+ include_credentials=True,
213
219
)
214
220
"""
215
221
_response = self ._raw_client .retrieve (
@@ -300,12 +306,12 @@ def with_raw_response(self) -> AsyncRawAccountsClient:
300
306
async def list (
301
307
self ,
302
308
* ,
303
- app_id : typing .Optional [str ] = None ,
304
309
external_user_id : typing .Optional [str ] = None ,
305
310
oauth_app_id : typing .Optional [str ] = None ,
306
311
after : typing .Optional [str ] = None ,
307
312
before : typing .Optional [str ] = None ,
308
313
limit : typing .Optional [int ] = None ,
314
+ app : typing .Optional [str ] = None ,
309
315
include_credentials : typing .Optional [bool ] = None ,
310
316
request_options : typing .Optional [RequestOptions ] = None ,
311
317
) -> AsyncPager [Account ]:
@@ -314,9 +320,6 @@ async def list(
314
320
315
321
Parameters
316
322
----------
317
- app_id : typing.Optional[str]
318
- The app slug or ID to filter accounts by.
319
-
320
323
external_user_id : typing.Optional[str]
321
324
322
325
oauth_app_id : typing.Optional[str]
@@ -331,6 +334,9 @@ async def list(
331
334
limit : typing.Optional[int]
332
335
The maximum number of results to return
333
336
337
+ app : typing.Optional[str]
338
+ The app slug or ID to filter accounts by.
339
+
334
340
include_credentials : typing.Optional[bool]
335
341
Whether to retrieve the account's credentials or not
336
342
@@ -357,7 +363,15 @@ async def list(
357
363
358
364
359
365
async def main() -> None:
360
- response = await client.accounts.list()
366
+ response = await client.accounts.list(
367
+ external_user_id="external_user_id",
368
+ oauth_app_id="oauth_app_id",
369
+ after="after",
370
+ before="before",
371
+ limit=1,
372
+ app="app",
373
+ include_credentials=True,
374
+ )
361
375
async for item in response:
362
376
yield item
363
377
@@ -369,12 +383,12 @@ async def main() -> None:
369
383
asyncio.run(main())
370
384
"""
371
385
return await self ._raw_client .list (
372
- app_id = app_id ,
373
386
external_user_id = external_user_id ,
374
387
oauth_app_id = oauth_app_id ,
375
388
after = after ,
376
389
before = before ,
377
390
limit = limit ,
391
+ app = app ,
378
392
include_credentials = include_credentials ,
379
393
request_options = request_options ,
380
394
)
@@ -385,7 +399,6 @@ async def create(
385
399
app_slug : str ,
386
400
cfmap_json : str ,
387
401
connect_token : str ,
388
- app_id : typing .Optional [str ] = None ,
389
402
external_user_id : typing .Optional [str ] = None ,
390
403
oauth_app_id : typing .Optional [str ] = None ,
391
404
name : typing .Optional [str ] = OMIT ,
@@ -405,9 +418,6 @@ async def create(
405
418
connect_token : str
406
419
The connect token for authentication
407
420
408
- app_id : typing.Optional[str]
409
- The app slug or ID to filter accounts by.
410
-
411
421
external_user_id : typing.Optional[str]
412
422
413
423
oauth_app_id : typing.Optional[str]
@@ -440,6 +450,8 @@ async def create(
440
450
441
451
async def main() -> None:
442
452
await client.accounts.create(
453
+ external_user_id="external_user_id",
454
+ oauth_app_id="oauth_app_id",
443
455
app_slug="app_slug",
444
456
cfmap_json="cfmap_json",
445
457
connect_token="connect_token",
@@ -452,7 +464,6 @@ async def main() -> None:
452
464
app_slug = app_slug ,
453
465
cfmap_json = cfmap_json ,
454
466
connect_token = connect_token ,
455
- app_id = app_id ,
456
467
external_user_id = external_user_id ,
457
468
oauth_app_id = oauth_app_id ,
458
469
name = name ,
@@ -502,6 +513,7 @@ async def retrieve(
502
513
async def main() -> None:
503
514
await client.accounts.retrieve(
504
515
account_id="account_id",
516
+ include_credentials=True,
505
517
)
506
518
507
519
0 commit comments