Available on crate feature helix only.
Expand description

Gets information for a specific Twitch Team. get-teams

Request: GetTeamsRequest

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

use twitch_api2::helix::teams::get_teams;
let request = get_teams::GetTeamsRequest::builder()
    .name("coolteam".to_string())
    .build();

Response: Team

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

use twitch_api2::helix::{self, teams::get_teams};
let request = get_teams::GetTeamsRequest::builder()
    .name("coolteam".to_string())
    .build();
let response: Vec<get_teams::Team> = 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 GetTeamsRequest::parse_response(None, &request.get_uri(), response)

Structs

Query Parameters for Get Teams

Return Values for Get Teams