Module twitch_api2::helix::tags::get_all_stream_tags[][src]

This is supported on crate feature helix only.

Gets the list of all stream tags defined by Twitch, optionally filtered by tag ID(s). get-all-stream-tags

Accessing the endpoint

Request: GetAllStreamTagsRequest

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

use twitch_api2::helix::tags::get_all_stream_tags;
let request = get_all_stream_tags::GetAllStreamTagsRequest::builder()
    .first(100)
    .build();

Response: Tag

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

use twitch_api2::helix::{self, tags::get_all_stream_tags};
let request = get_all_stream_tags::GetAllStreamTagsRequest::builder()
    .build();
let response: Vec<get_all_stream_tags::Tag> = 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

GetAllStreamTagsRequest

Query Parameters for Get All Stream Tags

Type Definitions

Tag

Return Values for Get All Stream Tags