Module get_channel_teams

Source
Available on crate feature helix only.
Expand description

Gets information for a specific Twitch Team. get-teams

§Request: GetChannelTeamsRequest

To use this endpoint, construct a GetChannelTeamsRequest with the GetChannelTeamsRequest::broadcaster_id() method.

use twitch_api::helix::teams::get_channel_teams;
let request =
    get_channel_teams::GetChannelTeamsRequest::broadcaster_id("1337");

§Response: BroadcasterTeam

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

use twitch_api::helix::{self, teams::get_channel_teams};
let request = get_channel_teams::GetChannelTeamsRequest::broadcaster_id("1337");
let response: Vec<get_channel_teams::BroadcasterTeam> = client.req_get(request, &token).await?.data;

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

Structs§

BroadcasterTeam
Return Values for Get Channel Teams
GetChannelTeamsRequest
Query Parameters for Get Channel Teams