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 (all playlists for a channel)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (all playlists for a channel)' example for the playlists.list method.
This example retrieves playlists owned by the YouTube channel that the request's channelId parameter identifies.
list (my playlists)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (my playlists)' example for the playlists.list method.
This example retrieves playlists created in the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return playlists owned by the user authorizing the request.

Content owners can also use the onBehalfOfContentOwner and onBehalfOfContentOwnerChannel parameters to retrieve playlists for a particular owned channel.