Available on crate feature helix only.
Expand description

Deletes a Custom Reward on a channel. delete-custom-reward

Accessing the endpoint

Request: DeleteCustomRewardRequest

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

use twitch_api2::helix::points::delete_custom_reward;
let request = delete_custom_reward::DeleteCustomRewardRequest::builder()
    .broadcaster_id("274637212")
    .id("1234")
    .build();

Response: DeleteCustomReward

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

use twitch_api2::helix::{self, points::delete_custom_reward};
let request = delete_custom_reward::DeleteCustomRewardRequest::builder()
    .broadcaster_id("274637212")
    .id("1234")
    .build();
let response: delete_custom_reward::DeleteCustomReward = 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 DeleteCustomRewardRequest::parse_response(None, &request.get_uri(), response)

Structs

Enums