W tabeli poniżej znajdziesz typowe przypadki użycia tej metody. Możesz kliknąć nazwę przypadku użycia, aby wczytać przykładowe wartości parametrów w narzędziu Google APIs Explorer. Możesz też zobaczyć przykłady kodu dla danego przypadku użycia w pełnoekranowym narzędziu APIs Explorer, klikając ikonę kodu pod nazwą przypadku użycia. W interfejsie pełnoekranowym możesz aktualizować wartości parametrów i właściwości, a przykłady kodu są dynamicznie aktualizowane, aby odzwierciedlać wpisane przez Ciebie wartości.

Use cases
list
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list' example for the videoCategories.list method.
This example retrieves a list of categories that can be associated with YouTube videos in the United States. The regionCode parameter specifies the country for which categories are being retrieved.
list (for a specific region)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (for a specific region)' example for the videoCategories.list method.
This example uses the regionCode to retrieve a list of categories that can be associated with YouTube videos in Spain. It also uses the hl parameter to indicate that text labels in the response should be specified in Spanish.