I18nRegions
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób i18nRegion
identyfikuje obszar geograficzny, który użytkownik YouTube może wybrać jako preferowany region treści. Region treści może być też określany jako lokalizacja treści. W przypadku strony YouTube region treści może być wybierany automatycznie na podstawie heurystyk, takich jak domena YouTube czy lokalizacja adresu IP użytkownika. Użytkownik może też ręcznie wybrać odpowiedni region treści w stopce witryny YouTube.
Każdy zasób i18nRegion
ma kod regionu i nazwę. Kod regionu może być używany jako wartość parametru regionCode
podczas wywoływania metod interfejsu API, takich jak search.list
, videos.list
, activities.list
i videoCategories.list
.
Metody
Interfejs API obsługuje te metody dotyczące zasobów i18nRegions
:
- list
- Zwraca listę regionów treści obsługiwanych przez stronę YouTube.
Wypróbuj teraz
Reprezentacja zasobu
Struktura JSON poniżej pokazuje format zasobu i18nRegions
:
{
"kind": "youtube#i18nRegion",
"etag": etag,
"id": string,
"snippet": {
"gl": string,
"name": string
}
}
Właściwości
Właściwości występujące w tym zasobie są opisane w tabeli poniżej:
Właściwości |
kind |
string Określa typ zasobu interfejsu API. Wartość będzie wynosić youtube#i18nRegion . |
etag |
etag Etag tego zasobu. |
id |
string Identyfikator, którego YouTube używa do jednoznacznego identyfikowania regionu. |
snippet |
object Obiekt snippet zawiera podstawowe informacje o regionie i18n, takie jak jego kod i nazwa. |
snippet.gl |
string Dwuliterowy kod ISO kraju, który identyfikuje region. |
snippet.name |
string Nazwa regionu. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-30 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-11-30 UTC."],[[["An i18nRegion resource specifies a geographic area that YouTube users can choose as their preferred content region."],["The i18nRegion includes a region code and a name, and the code can be used when calling API methods such as `search.list`."],["The YouTube API's `i18nRegions.list` method allows retrieval of a list of supported content regions."],["Each i18nRegion resource includes an `id`, `etag`, and `snippet` containing the region code (`gl`) and region `name`."]]],["The `i18nRegion` resource represents a YouTube content region, selectable by users or automatically determined. Each resource has a unique ID, region code, and name. The region code is usable in API methods like `search.list`. The resource can be retrieved via the `i18nRegions.list` method, which provides the supported content regions. The resource's properties include `kind` (`youtube#i18nRegion`), `etag`, `id`, and a `snippet` object containing the region's code (`gl`) and name.\n"]]