Available on crate feature helix only.
Expand description

Unblocks the specified user on behalf of the authenticated user. unblock-user

Accessing the endpoint

Request: UnblockUserRequest

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

use twitch_api2::helix::users::unblock_user;
let request = unblock_user::UnblockUserRequest::builder()
    .target_user_id("1234")
    .build();

Response: UnblockUser

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

use twitch_api2::helix::{self, users::unblock_user};
let request = unblock_user::UnblockUserRequest::builder()
    .target_user_id("1234")
    .build();
let response: unblock_user::UnblockUser = 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 UnblockUserRequest::parse_response(None, &request.get_uri(), response)

Structs

Query Parameters for Unblock User

Enums

Return Values for Unblock User