Module twitch_api2::helix::videos::get_videos[][src]

This is supported on crate feature helix only.

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("1234".to_string())
    .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("1234".to_string())
    .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 request.parse_response(&request.get_uri()?)

Structs

GetVideosRequest

Query Parameters for Get Videos

Video

Return Values for Get Videos