Available on crate feature helix only.
Expand description

Gets clip information by clip ID (one or more), broadcaster ID (one only), or game ID (one only). get-clips

Accessing the endpoint

Request: GetClipsRequest

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

use twitch_api2::helix::clips::get_clips;
let request = get_clips::GetClipsRequest::builder()
    .broadcaster_id(Some("1234".into()))
    .build();

Response: Clip

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

use twitch_api2::helix::{self, clips::get_clips};
let request = get_clips::GetClipsRequest::builder()
    .broadcaster_id(Some("1234".into()))
    .build();
let response: Vec<get_clips::Clip> = 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 GetClipsRequest::parse_response(None, &request.get_uri(), response)

Structs

Return Values for Get Clips

Query Parameters for Get Clips