| 1 |
|
| 2 |
|
| 3 |
import typing |
| 4 |
|
| 5 |
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper |
| 6 |
from ..core.pagination import AsyncPager, SyncPager |
| 7 |
from ..core.request_options import RequestOptions |
| 8 |
from ..types.create_form_response_content import CreateFormResponseContent |
| 9 |
from ..types.form_ending_node import FormEndingNode |
| 10 |
from ..types.form_ending_node_nullable import FormEndingNodeNullable |
| 11 |
from ..types.form_languages import FormLanguages |
| 12 |
from ..types.form_languages_nullable import FormLanguagesNullable |
| 13 |
from ..types.form_messages import FormMessages |
| 14 |
from ..types.form_messages_nullable import FormMessagesNullable |
| 15 |
from ..types.form_node_list import FormNodeList |
| 16 |
from ..types.form_node_list_nullable import FormNodeListNullable |
| 17 |
from ..types.form_start_node import FormStartNode |
| 18 |
from ..types.form_start_node_nullable import FormStartNodeNullable |
| 19 |
from ..types.form_style import FormStyle |
| 20 |
from ..types.form_style_nullable import FormStyleNullable |
| 21 |
from ..types.form_summary import FormSummary |
| 22 |
from ..types.form_translations import FormTranslations |
| 23 |
from ..types.form_translations_nullable import FormTranslationsNullable |
| 24 |
from ..types.forms_request_parameters_hydrate_enum import FormsRequestParametersHydrateEnum |
| 25 |
from ..types.get_form_response_content import GetFormResponseContent |
| 26 |
from ..types.list_forms_offset_paginated_response_content import ListFormsOffsetPaginatedResponseContent |
| 27 |
from ..types.update_form_response_content import UpdateFormResponseContent |
| 28 |
from .raw_client import AsyncRawFormsClient, RawFormsClient |
| 29 |
|
| 30 |
|
| 31 |
OMIT = typing.cast(typing.Any, ...) |
| 32 |
|
| 33 |
|
| 34 |
class FormsClient: |
| 35 |
def __init__(self, *, client_wrapper: SyncClientWrapper): |
| 36 |
self._raw_client = RawFormsClient(client_wrapper=client_wrapper) |
| 37 |
|
| 38 |
@property |
| 39 |
def with_raw_response(self) -> RawFormsClient: |
| 40 |
""" |
| 41 |
Retrieves a raw implementation of this client that returns raw responses. |
| 42 |
|
| 43 |
Returns |
| 44 |
------- |
| 45 |
RawFormsClient |
| 46 |
""" |
| 47 |
return self._raw_client |
| 48 |
|
| 49 |
def list( |
| 50 |
self, |
| 51 |
*, |
| 52 |
page: typing.Optional[int] = 0, |
| 53 |
per_page: typing.Optional[int] = 50, |
| 54 |
include_totals: typing.Optional[bool] = True, |
| 55 |
hydrate: typing.Optional[ |
| 56 |
typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] |
| 57 |
] = None, |
| 58 |
request_options: typing.Optional[RequestOptions] = None, |
| 59 |
) -> SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: |
| 60 |
""" |
| 61 |
Parameters |
| 62 |
---------- |
| 63 |
page : typing.Optional[int] |
| 64 |
Page index of the results to return. First page is 0. |
| 65 |
|
| 66 |
per_page : typing.Optional[int] |
| 67 |
Number of results per page. Defaults to 50. |
| 68 |
|
| 69 |
include_totals : typing.Optional[bool] |
| 70 |
Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). |
| 71 |
|
| 72 |
hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] |
| 73 |
Query parameter to hydrate the response with additional data |
| 74 |
|
| 75 |
request_options : typing.Optional[RequestOptions] |
| 76 |
Request-specific configuration. |
| 77 |
|
| 78 |
Returns |
| 79 |
------- |
| 80 |
SyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] |
| 81 |
Forms successfully retrieved. |
| 82 |
|
| 83 |
Examples |
| 84 |
-------- |
| 85 |
from auth0 import Auth0 |
| 86 |
|
| 87 |
client = Auth0( |
| 88 |
token="YOUR_TOKEN", |
| 89 |
) |
| 90 |
response = client.forms.list( |
| 91 |
page=1, |
| 92 |
per_page=1, |
| 93 |
include_totals=True, |
| 94 |
hydrate=["flow_count"], |
| 95 |
) |
| 96 |
for item in response: |
| 97 |
yield item |
| 98 |
# alternatively, you can paginate page-by-page |
| 99 |
for page in response.iter_pages(): |
| 100 |
yield page |
| 101 |
""" |
| 102 |
return self._raw_client.list( |
| 103 |
page=page, |
| 104 |
per_page=per_page, |
| 105 |
include_totals=include_totals, |
| 106 |
hydrate=hydrate, |
| 107 |
request_options=request_options, |
| 108 |
) |
| 109 |
|
| 110 |
def create( |
| 111 |
self, |
| 112 |
*, |
| 113 |
name: str, |
| 114 |
messages: typing.Optional[FormMessages] = OMIT, |
| 115 |
languages: typing.Optional[FormLanguages] = OMIT, |
| 116 |
translations: typing.Optional[FormTranslations] = OMIT, |
| 117 |
nodes: typing.Optional[FormNodeList] = OMIT, |
| 118 |
start: typing.Optional[FormStartNode] = OMIT, |
| 119 |
ending: typing.Optional[FormEndingNode] = OMIT, |
| 120 |
style: typing.Optional[FormStyle] = OMIT, |
| 121 |
request_options: typing.Optional[RequestOptions] = None, |
| 122 |
) -> CreateFormResponseContent: |
| 123 |
""" |
| 124 |
Parameters |
| 125 |
---------- |
| 126 |
name : str |
| 127 |
|
| 128 |
messages : typing.Optional[FormMessages] |
| 129 |
|
| 130 |
languages : typing.Optional[FormLanguages] |
| 131 |
|
| 132 |
translations : typing.Optional[FormTranslations] |
| 133 |
|
| 134 |
nodes : typing.Optional[FormNodeList] |
| 135 |
|
| 136 |
start : typing.Optional[FormStartNode] |
| 137 |
|
| 138 |
ending : typing.Optional[FormEndingNode] |
| 139 |
|
| 140 |
style : typing.Optional[FormStyle] |
| 141 |
|
| 142 |
request_options : typing.Optional[RequestOptions] |
| 143 |
Request-specific configuration. |
| 144 |
|
| 145 |
Returns |
| 146 |
------- |
| 147 |
CreateFormResponseContent |
| 148 |
Form successfully created. |
| 149 |
|
| 150 |
Examples |
| 151 |
-------- |
| 152 |
from auth0 import Auth0 |
| 153 |
|
| 154 |
client = Auth0( |
| 155 |
token="YOUR_TOKEN", |
| 156 |
) |
| 157 |
client.forms.create( |
| 158 |
name="name", |
| 159 |
) |
| 160 |
""" |
| 161 |
_response = self._raw_client.create( |
| 162 |
name=name, |
| 163 |
messages=messages, |
| 164 |
languages=languages, |
| 165 |
translations=translations, |
| 166 |
nodes=nodes, |
| 167 |
start=start, |
| 168 |
ending=ending, |
| 169 |
style=style, |
| 170 |
request_options=request_options, |
| 171 |
) |
| 172 |
return _response.data |
| 173 |
|
| 174 |
def get( |
| 175 |
self, |
| 176 |
id: str, |
| 177 |
*, |
| 178 |
hydrate: typing.Optional[ |
| 179 |
typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] |
| 180 |
] = None, |
| 181 |
request_options: typing.Optional[RequestOptions] = None, |
| 182 |
) -> GetFormResponseContent: |
| 183 |
""" |
| 184 |
Parameters |
| 185 |
---------- |
| 186 |
id : str |
| 187 |
The ID of the form to retrieve. |
| 188 |
|
| 189 |
hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] |
| 190 |
Query parameter to hydrate the response with additional data |
| 191 |
|
| 192 |
request_options : typing.Optional[RequestOptions] |
| 193 |
Request-specific configuration. |
| 194 |
|
| 195 |
Returns |
| 196 |
------- |
| 197 |
GetFormResponseContent |
| 198 |
Form successfully retrieved. |
| 199 |
|
| 200 |
Examples |
| 201 |
-------- |
| 202 |
from auth0 import Auth0 |
| 203 |
|
| 204 |
client = Auth0( |
| 205 |
token="YOUR_TOKEN", |
| 206 |
) |
| 207 |
client.forms.get( |
| 208 |
id="id", |
| 209 |
hydrate=["flow_count"], |
| 210 |
) |
| 211 |
""" |
| 212 |
_response = self._raw_client.get(id, hydrate=hydrate, request_options=request_options) |
| 213 |
return _response.data |
| 214 |
|
| 215 |
def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: |
| 216 |
""" |
| 217 |
Parameters |
| 218 |
---------- |
| 219 |
id : str |
| 220 |
The ID of the form to delete. |
| 221 |
|
| 222 |
request_options : typing.Optional[RequestOptions] |
| 223 |
Request-specific configuration. |
| 224 |
|
| 225 |
Returns |
| 226 |
------- |
| 227 |
None |
| 228 |
|
| 229 |
Examples |
| 230 |
-------- |
| 231 |
from auth0 import Auth0 |
| 232 |
|
| 233 |
client = Auth0( |
| 234 |
token="YOUR_TOKEN", |
| 235 |
) |
| 236 |
client.forms.delete( |
| 237 |
id="id", |
| 238 |
) |
| 239 |
""" |
| 240 |
_response = self._raw_client.delete(id, request_options=request_options) |
| 241 |
return _response.data |
| 242 |
|
| 243 |
def update( |
| 244 |
self, |
| 245 |
id: str, |
| 246 |
*, |
| 247 |
name: typing.Optional[str] = OMIT, |
| 248 |
messages: typing.Optional[FormMessagesNullable] = OMIT, |
| 249 |
languages: typing.Optional[FormLanguagesNullable] = OMIT, |
| 250 |
translations: typing.Optional[FormTranslationsNullable] = OMIT, |
| 251 |
nodes: typing.Optional[FormNodeListNullable] = OMIT, |
| 252 |
start: typing.Optional[FormStartNodeNullable] = OMIT, |
| 253 |
ending: typing.Optional[FormEndingNodeNullable] = OMIT, |
| 254 |
style: typing.Optional[FormStyleNullable] = OMIT, |
| 255 |
request_options: typing.Optional[RequestOptions] = None, |
| 256 |
) -> UpdateFormResponseContent: |
| 257 |
""" |
| 258 |
Parameters |
| 259 |
---------- |
| 260 |
id : str |
| 261 |
The ID of the form to update. |
| 262 |
|
| 263 |
name : typing.Optional[str] |
| 264 |
|
| 265 |
messages : typing.Optional[FormMessagesNullable] |
| 266 |
|
| 267 |
languages : typing.Optional[FormLanguagesNullable] |
| 268 |
|
| 269 |
translations : typing.Optional[FormTranslationsNullable] |
| 270 |
|
| 271 |
nodes : typing.Optional[FormNodeListNullable] |
| 272 |
|
| 273 |
start : typing.Optional[FormStartNodeNullable] |
| 274 |
|
| 275 |
ending : typing.Optional[FormEndingNodeNullable] |
| 276 |
|
| 277 |
style : typing.Optional[FormStyleNullable] |
| 278 |
|
| 279 |
request_options : typing.Optional[RequestOptions] |
| 280 |
Request-specific configuration. |
| 281 |
|
| 282 |
Returns |
| 283 |
------- |
| 284 |
UpdateFormResponseContent |
| 285 |
Form successfully updated. |
| 286 |
|
| 287 |
Examples |
| 288 |
-------- |
| 289 |
from auth0 import Auth0 |
| 290 |
|
| 291 |
client = Auth0( |
| 292 |
token="YOUR_TOKEN", |
| 293 |
) |
| 294 |
client.forms.update( |
| 295 |
id="id", |
| 296 |
) |
| 297 |
""" |
| 298 |
_response = self._raw_client.update( |
| 299 |
id, |
| 300 |
name=name, |
| 301 |
messages=messages, |
| 302 |
languages=languages, |
| 303 |
translations=translations, |
| 304 |
nodes=nodes, |
| 305 |
start=start, |
| 306 |
ending=ending, |
| 307 |
style=style, |
| 308 |
request_options=request_options, |
| 309 |
) |
| 310 |
return _response.data |
| 311 |
|
| 312 |
|
| 313 |
class AsyncFormsClient: |
| 314 |
def __init__(self, *, client_wrapper: AsyncClientWrapper): |
| 315 |
self._raw_client = AsyncRawFormsClient(client_wrapper=client_wrapper) |
| 316 |
|
| 317 |
@property |
| 318 |
def with_raw_response(self) -> AsyncRawFormsClient: |
| 319 |
""" |
| 320 |
Retrieves a raw implementation of this client that returns raw responses. |
| 321 |
|
| 322 |
Returns |
| 323 |
------- |
| 324 |
AsyncRawFormsClient |
| 325 |
""" |
| 326 |
return self._raw_client |
| 327 |
|
| 328 |
async def list( |
| 329 |
self, |
| 330 |
*, |
| 331 |
page: typing.Optional[int] = 0, |
| 332 |
per_page: typing.Optional[int] = 50, |
| 333 |
include_totals: typing.Optional[bool] = True, |
| 334 |
hydrate: typing.Optional[ |
| 335 |
typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] |
| 336 |
] = None, |
| 337 |
request_options: typing.Optional[RequestOptions] = None, |
| 338 |
) -> AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent]: |
| 339 |
""" |
| 340 |
Parameters |
| 341 |
---------- |
| 342 |
page : typing.Optional[int] |
| 343 |
Page index of the results to return. First page is 0. |
| 344 |
|
| 345 |
per_page : typing.Optional[int] |
| 346 |
Number of results per page. Defaults to 50. |
| 347 |
|
| 348 |
include_totals : typing.Optional[bool] |
| 349 |
Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). |
| 350 |
|
| 351 |
hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] |
| 352 |
Query parameter to hydrate the response with additional data |
| 353 |
|
| 354 |
request_options : typing.Optional[RequestOptions] |
| 355 |
Request-specific configuration. |
| 356 |
|
| 357 |
Returns |
| 358 |
------- |
| 359 |
AsyncPager[FormSummary, ListFormsOffsetPaginatedResponseContent] |
| 360 |
Forms successfully retrieved. |
| 361 |
|
| 362 |
Examples |
| 363 |
-------- |
| 364 |
import asyncio |
| 365 |
|
| 366 |
from auth0 import AsyncAuth0 |
| 367 |
|
| 368 |
client = AsyncAuth0( |
| 369 |
token="YOUR_TOKEN", |
| 370 |
) |
| 371 |
|
| 372 |
|
| 373 |
async def main() -> None: |
| 374 |
response = await client.forms.list( |
| 375 |
page=1, |
| 376 |
per_page=1, |
| 377 |
include_totals=True, |
| 378 |
hydrate=["flow_count"], |
| 379 |
) |
| 380 |
async for item in response: |
| 381 |
yield item |
| 382 |
|
| 383 |
# alternatively, you can paginate page-by-page |
| 384 |
async for page in response.iter_pages(): |
| 385 |
yield page |
| 386 |
|
| 387 |
|
| 388 |
asyncio.run(main()) |
| 389 |
""" |
| 390 |
return await self._raw_client.list( |
| 391 |
page=page, |
| 392 |
per_page=per_page, |
| 393 |
include_totals=include_totals, |
| 394 |
hydrate=hydrate, |
| 395 |
request_options=request_options, |
| 396 |
) |
| 397 |
|
| 398 |
async def create( |
| 399 |
self, |
| 400 |
*, |
| 401 |
name: str, |
| 402 |
messages: typing.Optional[FormMessages] = OMIT, |
| 403 |
languages: typing.Optional[FormLanguages] = OMIT, |
| 404 |
translations: typing.Optional[FormTranslations] = OMIT, |
| 405 |
nodes: typing.Optional[FormNodeList] = OMIT, |
| 406 |
start: typing.Optional[FormStartNode] = OMIT, |
| 407 |
ending: typing.Optional[FormEndingNode] = OMIT, |
| 408 |
style: typing.Optional[FormStyle] = OMIT, |
| 409 |
request_options: typing.Optional[RequestOptions] = None, |
| 410 |
) -> CreateFormResponseContent: |
| 411 |
""" |
| 412 |
Parameters |
| 413 |
---------- |
| 414 |
name : str |
| 415 |
|
| 416 |
messages : typing.Optional[FormMessages] |
| 417 |
|
| 418 |
languages : typing.Optional[FormLanguages] |
| 419 |
|
| 420 |
translations : typing.Optional[FormTranslations] |
| 421 |
|
| 422 |
nodes : typing.Optional[FormNodeList] |
| 423 |
|
| 424 |
start : typing.Optional[FormStartNode] |
| 425 |
|
| 426 |
ending : typing.Optional[FormEndingNode] |
| 427 |
|
| 428 |
style : typing.Optional[FormStyle] |
| 429 |
|
| 430 |
request_options : typing.Optional[RequestOptions] |
| 431 |
Request-specific configuration. |
| 432 |
|
| 433 |
Returns |
| 434 |
------- |
| 435 |
CreateFormResponseContent |
| 436 |
Form successfully created. |
| 437 |
|
| 438 |
Examples |
| 439 |
-------- |
| 440 |
import asyncio |
| 441 |
|
| 442 |
from auth0 import AsyncAuth0 |
| 443 |
|
| 444 |
client = AsyncAuth0( |
| 445 |
token="YOUR_TOKEN", |
| 446 |
) |
| 447 |
|
| 448 |
|
| 449 |
async def main() -> None: |
| 450 |
await client.forms.create( |
| 451 |
name="name", |
| 452 |
) |
| 453 |
|
| 454 |
|
| 455 |
asyncio.run(main()) |
| 456 |
""" |
| 457 |
_response = await self._raw_client.create( |
| 458 |
name=name, |
| 459 |
messages=messages, |
| 460 |
languages=languages, |
| 461 |
translations=translations, |
| 462 |
nodes=nodes, |
| 463 |
start=start, |
| 464 |
ending=ending, |
| 465 |
style=style, |
| 466 |
request_options=request_options, |
| 467 |
) |
| 468 |
return _response.data |
| 469 |
|
| 470 |
async def get( |
| 471 |
self, |
| 472 |
id: str, |
| 473 |
*, |
| 474 |
hydrate: typing.Optional[ |
| 475 |
typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]] |
| 476 |
] = None, |
| 477 |
request_options: typing.Optional[RequestOptions] = None, |
| 478 |
) -> GetFormResponseContent: |
| 479 |
""" |
| 480 |
Parameters |
| 481 |
---------- |
| 482 |
id : str |
| 483 |
The ID of the form to retrieve. |
| 484 |
|
| 485 |
hydrate : typing.Optional[typing.Union[FormsRequestParametersHydrateEnum, typing.Sequence[FormsRequestParametersHydrateEnum]]] |
| 486 |
Query parameter to hydrate the response with additional data |
| 487 |
|
| 488 |
request_options : typing.Optional[RequestOptions] |
| 489 |
Request-specific configuration. |
| 490 |
|
| 491 |
Returns |
| 492 |
------- |
| 493 |
GetFormResponseContent |
| 494 |
Form successfully retrieved. |
| 495 |
|
| 496 |
Examples |
| 497 |
-------- |
| 498 |
import asyncio |
| 499 |
|
| 500 |
from auth0 import AsyncAuth0 |
| 501 |
|
| 502 |
client = AsyncAuth0( |
| 503 |
token="YOUR_TOKEN", |
| 504 |
) |
| 505 |
|
| 506 |
|
| 507 |
async def main() -> None: |
| 508 |
await client.forms.get( |
| 509 |
id="id", |
| 510 |
hydrate=["flow_count"], |
| 511 |
) |
| 512 |
|
| 513 |
|
| 514 |
asyncio.run(main()) |
| 515 |
""" |
| 516 |
_response = await self._raw_client.get(id, hydrate=hydrate, request_options=request_options) |
| 517 |
return _response.data |
| 518 |
|
| 519 |
async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: |
| 520 |
""" |
| 521 |
Parameters |
| 522 |
---------- |
| 523 |
id : str |
| 524 |
The ID of the form to delete. |
| 525 |
|
| 526 |
request_options : typing.Optional[RequestOptions] |
| 527 |
Request-specific configuration. |
| 528 |
|
| 529 |
Returns |
| 530 |
------- |
| 531 |
None |
| 532 |
|
| 533 |
Examples |
| 534 |
-------- |
| 535 |
import asyncio |
| 536 |
|
| 537 |
from auth0 import AsyncAuth0 |
| 538 |
|
| 539 |
client = AsyncAuth0( |
| 540 |
token="YOUR_TOKEN", |
| 541 |
) |
| 542 |
|
| 543 |
|
| 544 |
async def main() -> None: |
| 545 |
await client.forms.delete( |
| 546 |
id="id", |
| 547 |
) |
| 548 |
|
| 549 |
|
| 550 |
asyncio.run(main()) |
| 551 |
""" |
| 552 |
_response = await self._raw_client.delete(id, request_options=request_options) |
| 553 |
return _response.data |
| 554 |
|
| 555 |
async def update( |
| 556 |
self, |
| 557 |
id: str, |
| 558 |
*, |
| 559 |
name: typing.Optional[str] = OMIT, |
| 560 |
messages: typing.Optional[FormMessagesNullable] = OMIT, |
| 561 |
languages: typing.Optional[FormLanguagesNullable] = OMIT, |
| 562 |
translations: typing.Optional[FormTranslationsNullable] = OMIT, |
| 563 |
nodes: typing.Optional[FormNodeListNullable] = OMIT, |
| 564 |
start: typing.Optional[FormStartNodeNullable] = OMIT, |
| 565 |
ending: typing.Optional[FormEndingNodeNullable] = OMIT, |
| 566 |
style: typing.Optional[FormStyleNullable] = OMIT, |
| 567 |
request_options: typing.Optional[RequestOptions] = None, |
| 568 |
) -> UpdateFormResponseContent: |
| 569 |
""" |
| 570 |
Parameters |
| 571 |
---------- |
| 572 |
id : str |
| 573 |
The ID of the form to update. |
| 574 |
|
| 575 |
name : typing.Optional[str] |
| 576 |
|
| 577 |
messages : typing.Optional[FormMessagesNullable] |
| 578 |
|
| 579 |
languages : typing.Optional[FormLanguagesNullable] |
| 580 |
|
| 581 |
translations : typing.Optional[FormTranslationsNullable] |
| 582 |
|
| 583 |
nodes : typing.Optional[FormNodeListNullable] |
| 584 |
|
| 585 |
start : typing.Optional[FormStartNodeNullable] |
| 586 |
|
| 587 |
ending : typing.Optional[FormEndingNodeNullable] |
| 588 |
|
| 589 |
style : typing.Optional[FormStyleNullable] |
| 590 |
|
| 591 |
request_options : typing.Optional[RequestOptions] |
| 592 |
Request-specific configuration. |
| 593 |
|
| 594 |
Returns |
| 595 |
------- |
| 596 |
UpdateFormResponseContent |
| 597 |
Form successfully updated. |
| 598 |
|
| 599 |
Examples |
| 600 |
-------- |
| 601 |
import asyncio |
| 602 |
|
| 603 |
from auth0 import AsyncAuth0 |
| 604 |
|
| 605 |
client = AsyncAuth0( |
| 606 |
token="YOUR_TOKEN", |
| 607 |
) |
| 608 |
|
| 609 |
|
| 610 |
async def main() -> None: |
| 611 |
await client.forms.update( |
| 612 |
id="id", |
| 613 |
) |
| 614 |
|
| 615 |
|
| 616 |
asyncio.run(main()) |
| 617 |
""" |
| 618 |
_response = await self._raw_client.update( |
| 619 |
id, |
| 620 |
name=name, |
| 621 |
messages=messages, |
| 622 |
languages=languages, |
| 623 |
translations=translations, |
| 624 |
nodes=nodes, |
| 625 |
start=start, |
| 626 |
ending=ending, |
| 627 |
style=style, |
| 628 |
request_options=request_options, |
| 629 |
) |
| 630 |
return _response.data |