Module twitch_api2::helix::channels::get_channel_information [−][src]
This is supported on crate feature
helix
only.Gets channel information for users.
get-channel-information
Accessing the endpoint
Request: GetChannelInformationRequest
To use this endpoint, construct a GetChannelInformationRequest
with the GetChannelInformationRequest::builder()
method.
use twitch_api2::helix::channels::get_channel_information; let request = get_channel_information::GetChannelInformationRequest::builder() .broadcaster_id("1234") .build();
Response: ChannelInformation
Send the request to receive the response with HelixClient::req_get()
.
use twitch_api2::helix::{self, channels::get_channel_information}; let request = get_channel_information::GetChannelInformationRequest::builder() .broadcaster_id("1234") .build(); let response: Option<get_channel_information::ChannelInformation> = 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
ChannelInformation | Return Values for Get Channel Information |
GetChannelInformationRequest | Query Parameters for Get Channel Information |