ccls - YoYoGames/GMEXT-Twitch GitHub Wiki

CCLs (Content Classification Labels)

Functions

These are the functions of this module:



Back To Top

twitch_ccls_get_content_classification_labels

Twitch Endpoint: Get Content Classification Labels

This function gets information about Twitch content classification labels.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Success Callback, or Failure Callback.


Syntax:

twitch_ccls_get_content_classification_labels(optionals, callback_success, callback_failed)
Argument Type Description
optionals Struct The optional parameters to be passed into the function:

- locale : String : Locale for the Content Classification Labels. You may specify a maximum of 1 locale. Default: "en-US". Supported locales: "bg-BG", "cs-CZ", "da-DK", "da-DK", "de-DE", "el-GR", "en-GB", "en-US", "es-ES", "es-MX", "fi-FI", "fr-FR", "hu-HU", "it-IT", "ja-JP", "ko-KR", "nl-NL", "no-NO", "pl-PL", "pt-BT", "pt-PT", "ro-RO", "ru-RU", "sk-SK", "sv-SE", "th-TH", "tr-TR", "vi-VN", "zh-CN", "zh-TW"
callback_success Function Triggered if the request succeeded
callback_failed Function Triggered if the request failed



Returns:

N/A


Triggers:

Success Callback

These members are returned in the success callback:

Member Type Description
data Array A list that contains information about the available content classification labels.
 └── content_classification_labels Array The list of CCLs available.
         ├── id String Unique identifier for the CCL.
         ├── description String Localized description of the CCL.
         └── name String Localized name of the CCL.

Failure Callback

This method is triggered on failure.



⚠️ **GitHub.com Fallback** ⚠️