La tabella seguente mostra casi d'uso comuni per questo metodo. Puoi fare clic sul nome di un caso d'uso per caricare valori parametro di esempio in Explorer API. In alternativa, puoi vedere gli esempi di codice per un caso d'uso nell'Explorer API a schermo intero facendo clic sull'icona del codice sotto il nome di un caso d'uso. Nell'interfaccia utente a schermo intero, puoi aggiornare i valori dei parametri e delle proprietà e gli esempi di codice verranno aggiornati in modo dinamico per riflettere i valori inseriti.

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.