Module twitch_api2::helix::videos::delete_videos [−][src]
This is supported on crate feature
helix
only.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".to_string()]) .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".to_string()]) .build(); let response: delete_videos::DeleteVideo = client.req_delete(request, &token).await?;
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
DeleteVideosRequest | Query Parameters for Get Videos |
Enums
DeleteVideo | Return Values for Get Videos |