Available on crate feature helix only.
Expand description

Gets information about one or more specified Twitch users. get-users

Request: GetUsersRequest

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

use twitch_api2::helix::users::get_users;
let request = get_users::GetUsersRequest::builder()
    .id(vec!["1234".into()])
    .login(vec!["justintvfan".into()])
    .build();

Response: User

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

use twitch_api2::helix::{self, users::get_users};
let request = get_users::GetUsersRequest::builder()
    .id(vec!["1234".into()])
    .login(vec!["justintvfan".into()])
    .build();
let response: Vec<get_users::User> = 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 GetUsersRequest::parse_response(None, &request.get_uri(), response)

Structs

Query Parameters for Get Users

Return Values for Get Users