Module twitch_api2::helix::videos::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::builder()
method.
use twitch_api2::helix::videos::delete_videos;
let request = delete_videos::DeleteVideosRequest::builder()
.id(vec!["1234".into()])
.build();
Response: DeleteVideo
Send the request to receive the response with HelixClient::req_get()
.
use twitch_api2::helix::{self, videos::delete_videos};
let request = delete_videos::DeleteVideosRequest::builder()
.id(vec!["1234".into()])
.build();
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
Query Parameters for Delete Videos
Enums
Return Values for Delete Videos
delete-videos