Available on crate feature helix only.
Expand description

Gets video information by video ID (one or more), user ID (one only), or game ID (one only). get-videos

Accessing the endpoint

Request: GetVideosRequest

To use this endpoint, construct a GetVideosRequest with the GetVideosRequest::builder() method.

use twitch_api2::helix::videos::get_videos;
let request = get_videos::GetVideosRequest::builder()
    .user_id(Some("1234".into()))
    .build();

Response: Video

Send the request to receive the response with HelixClient::req_get().

use twitch_api2::helix::{self, videos::get_videos};
let request = get_videos::GetVideosRequest::builder()
    .user_id(Some("1234".into()))
    .build();
let response: Vec<get_videos::Video> = client.req_get(request, &token).await?.data;

You can also get the http::Request with request.create_request(&token, &client_id) and parse the http::Response with GetVideosRequest::parse_response(None, &request.get_uri(), response)

Structs

Query Parameters for Get Videos

muted segment in a video.

Return Values for Get Videos