Bảng dưới đây trình bày các trường hợp sử dụng phổ biến cho phương thức này. Bạn có thể nhấp vào tên trường hợp sử dụng để tải các giá trị tham số mẫu trong APIs Explorer. Ngoài ra, bạn có thể xem mã mẫu cho một trường hợp sử dụng trong Trình khám phá API toàn màn hình bằng cách nhấp vào biểu tượng mã bên dưới tên trường hợp sử dụng. Trong giao diện người dùng toàn màn hình, bạn có thể cập nhật các giá trị tham số và thuộc tính. Mã mẫu sẽ tự động cập nhật để phản ánh các giá trị mà bạn nhập.

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.