Module get_user_extensions

Source
Available on crate feature helix only.
Expand description

Gets a list of all extensions (both active and inactive) that the broadcaster has installed. get-user-extensions

The user ID in the access token identifies the broadcaster.

§Request: GetUserExtensionsRequest

To use this endpoint, construct a GetUserExtensionsRequest with the GetUserExtensionsRequest::new() method.

use twitch_api::helix::users::get_user_extensions;
let request = get_user_extensions::GetUserExtensionsRequest::new();

§Response: Extension

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

use twitch_api::helix::{self, users::get_user_extensions};
let request = get_user_extensions::GetUserExtensionsRequest::new();
let response: Vec<get_user_extensions::Extension> = 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 GetUserExtensionsRequest::parse_response(None, &request.get_uri(), response)

Structs§

Extension
Return Values for Get User Extensions
GetUserExtensionsRequest
Query Parameters for Get User Extensions

Enums§

ExtensionType
Where an extension can appear.