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 (by video ID)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (by video ID)' example for the commentThreads.list method.
This example retrieves all comment threads associated with a particular video. The request's videoId parameter identifies the video.
list (all threads related to channel ID)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (all threads related to channel ID)' example for the commentThreads.list method.
This example retrieves all comment threads associated with a particular channel. The request's allThreadsRelatedToChannelId parameter identifies the channel.