A tabela abaixo mostra casos de uso comuns desse método. Clique no nome de um caso de uso para carregar exemplos de valores de parâmetros no APIs Explorer. Também é possível ver exemplos de código para um caso de uso no APIs Explorer em tela cheia clicando no ícone de código abaixo do nome de um caso de uso. Na interface de tela cheia, você pode atualizar valores de parâmetros e propriedades, e os exemplos de código serão atualizados dinamicamente para refletir os valores inseridos.

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.