Module get_content_classification_labels

Source
Available on crate feature helix only.
Expand description

Gets information about Twitch content classification labels. get-content-classification-labels

§Accessing the endpoint

§Request: GetContentClassificationLabelsRequest

To use this endpoint, construct a GetContentClassificationLabelsRequest with the GetContentClassificationLabelsRequest::new() or GetContentClassificationLabelsRequest::locale() methods.

use twitch_api::helix::ccls::get_content_classification_labels;
let request =
    get_content_classification_labels::GetContentClassificationLabelsRequest::new();
// Get content classification labels for a specific locale
let request = get_content_classification_labels::GetContentClassificationLabelsRequest::locale("es-MX");

§Response: ContentClassificationLabel

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

use twitch_api::helix::{self, ccls::get_content_classification_labels};
let request = get_content_classification_labels::GetContentClassificationLabelsRequest::new();
let response: Vec<get_content_classification_labels::ContentClassificationLabel> = 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 GetContentClassificationLabelsRequest::parse_response(None, &request.get_uri(), response)

Structs§

ContentClassificationLabel
Return Values for Get Content Classification Labels
GetContentClassificationLabelsRequest
Query Parameters for Get Content Classification Labels