Fetch a character. Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for this re
(
self,
character_id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
)
| 547 | ) |
| 548 | |
| 549 | def get_character( |
| 550 | self, |
| 551 | character_id: str, |
| 552 | *, |
| 553 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 554 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 555 | extra_headers: Headers | None = None, |
| 556 | extra_query: Query | None = None, |
| 557 | extra_body: Body | None = None, |
| 558 | timeout: float | httpx.Timeout | None | NotGiven = not_given, |
| 559 | ) -> VideoGetCharacterResponse: |
| 560 | """ |
| 561 | Fetch a character. |
| 562 | |
| 563 | Args: |
| 564 | extra_headers: Send extra headers |
| 565 | |
| 566 | extra_query: Add additional query parameters to the request |
| 567 | |
| 568 | extra_body: Add additional JSON properties to the request |
| 569 | |
| 570 | timeout: Override the client-level default timeout for this request, in seconds |
| 571 | """ |
| 572 | if not character_id: |
| 573 | raise ValueError(f"Expected a non-empty value for `character_id` but received {character_id!r}") |
| 574 | return self._get( |
| 575 | path_template("/videos/characters/{character_id}", character_id=character_id), |
| 576 | options=make_request_options( |
| 577 | extra_headers=extra_headers, |
| 578 | extra_query=extra_query, |
| 579 | extra_body=extra_body, |
| 580 | timeout=timeout, |
| 581 | security={"bearer_auth": True}, |
| 582 | ), |
| 583 | cast_to=VideoGetCharacterResponse, |
| 584 | ) |
| 585 | |
| 586 | def remix( |
| 587 | self, |