Download the generated video bytes or a derived preview asset. Streams the rendered video content for the specified video job. Args: variant: Which downloadable asset to return. Defaults to the MP4 video. extra_headers: Send extra headers ex
(
self,
video_id: str,
*,
variant: Literal["video", "thumbnail", "spritesheet"] | Omit = omit,
# 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,
)
| 968 | ) |
| 969 | |
| 970 | async def download_content( |
| 971 | self, |
| 972 | video_id: str, |
| 973 | *, |
| 974 | variant: Literal["video", "thumbnail", "spritesheet"] | Omit = omit, |
| 975 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 976 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 977 | extra_headers: Headers | None = None, |
| 978 | extra_query: Query | None = None, |
| 979 | extra_body: Body | None = None, |
| 980 | timeout: float | httpx.Timeout | None | NotGiven = not_given, |
| 981 | ) -> _legacy_response.HttpxBinaryResponseContent: |
| 982 | """ |
| 983 | Download the generated video bytes or a derived preview asset. |
| 984 | |
| 985 | Streams the rendered video content for the specified video job. |
| 986 | |
| 987 | Args: |
| 988 | variant: Which downloadable asset to return. Defaults to the MP4 video. |
| 989 | |
| 990 | extra_headers: Send extra headers |
| 991 | |
| 992 | extra_query: Add additional query parameters to the request |
| 993 | |
| 994 | extra_body: Add additional JSON properties to the request |
| 995 | |
| 996 | timeout: Override the client-level default timeout for this request, in seconds |
| 997 | """ |
| 998 | if not video_id: |
| 999 | raise ValueError(f"Expected a non-empty value for `video_id` but received {video_id!r}") |
| 1000 | extra_headers = {"Accept": "application/binary", **(extra_headers or {})} |
| 1001 | return await self._get( |
| 1002 | path_template("/videos/{video_id}/content", video_id=video_id), |
| 1003 | options=make_request_options( |
| 1004 | extra_headers=extra_headers, |
| 1005 | extra_query=extra_query, |
| 1006 | extra_body=extra_body, |
| 1007 | timeout=timeout, |
| 1008 | query=await async_maybe_transform( |
| 1009 | {"variant": variant}, video_download_content_params.VideoDownloadContentParams |
| 1010 | ), |
| 1011 | security={"bearer_auth": True}, |
| 1012 | ), |
| 1013 | cast_to=_legacy_response.HttpxBinaryResponseContent, |
| 1014 | ) |
| 1015 | |
| 1016 | async def edit( |
| 1017 | self, |
nothing calls this directly
no test coverage detected