Module twitch_api2::helix::users::get_users [−][src]
This is supported on crate feature
helix
only.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".to_string()]) .login(vec!["justintvfan".to_string()]) .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".to_string()]) .login(vec!["justintvfan".to_string()]) .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 request.parse_response(&request.get_uri()?)
Structs
GetUsersRequest | Query Parameters for Get Users |
User | Return Values for Get Users |