Module twitch_api2::helix::teams::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::builder()
method.
use twitch_api2::helix::teams::get_channel_teams;
let request = get_channel_teams::GetChannelTeamsRequest::builder()
.broadcaster_id("1337")
.build();
Response: BroadcasterTeam
Send the request to receive the response with HelixClient::req_get()
.
use twitch_api2::helix::{self, teams::get_channel_teams};
let request = get_channel_teams::GetChannelTeamsRequest::builder()
.broadcaster_id("1337")
.build();
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
Return Values for Get Channel Teams
Query Parameters for Get Channel Teams