В таблице ниже показаны распространенные случаи использования этого метода. Вы можете щелкнуть имя варианта использования, чтобы загрузить образцы значений параметров в проводник API. Или вы можете просмотреть примеры кода для варианта использования в полноэкранном проводнике API, щелкнув значок кода под именем варианта использования. В полноэкранном пользовательском интерфейсе вы можете обновлять значения параметров и свойств, а примеры кода будут динамически обновляться в соответствии с введенными вами значениями.

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.