Module delete_videos

Source
Available on crate feature helix only.
Expand description

Deletes one or more videos. Videos are past broadcasts, Highlights, or uploads. delete-videos

§Accessing the endpoint

§Request: DeleteVideosRequest

To use this endpoint, construct a DeleteVideosRequest with the DeleteVideosRequest::ids() method.

use twitch_api::helix::videos::delete_videos;
let request = delete_videos::DeleteVideosRequest::ids(&"1234");

§Response: DeleteVideo

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

use twitch_api::helix::{self, videos::delete_videos};
let request = delete_videos::DeleteVideosRequest::ids(&"1234");
let response: delete_videos::DeleteVideo = client.req_delete(request, &token).await?.data;

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

Structs§

DeleteVideosRequest
Query Parameters for Delete Videos

Enums§

DeleteVideo
Return Values for Delete Videos delete-videos