Daftar di bawah menunjukkan kasus penggunaan umum untuk metode ini. Arahkan kursor ke kasus penggunaan untuk melihat deskripsinya, atau klik kasus penggunaan untuk memuat nilai parameter contoh di APIs Explorer. Anda dapat membuka Penjelajah API layar penuh untuk melihat contoh kode yang diperbarui secara dinamis untuk mencerminkan nilai parameter yang dimasukkan di Explorer.
Tabel di bawah menunjukkan kasus penggunaan umum untuk metode ini. Anda dapat mengklik nama kasus penggunaan untuk memuat nilai parameter contoh di APIs Explorer. Atau, Anda dapat melihat contoh kode untuk kasus penggunaan di APIs Explorer layar penuh dengan mengklik ikon kode di bawah nama kasus penggunaan. Di UI layar penuh, Anda dapat memperbarui nilai parameter dan properti, serta contoh kode akan diperbarui secara dinamis untuk mencerminkan nilai yang Anda masukkan.
Metode ini memiliki satu kasus penggunaan umum, yang dijelaskan di bawah ini. Tombol di bawah deskripsi mengisi APIs Explorer dengan nilai contoh atau membuka APIs Explorer layar penuh untuk menampilkan contoh kode yang menggunakan nilai tersebut. Contoh kode juga diperbarui secara dinamis jika Anda mengubah nilainya.
Use cases | |
---|---|
list (by channel ID) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the id request parameter to identify the channel by its YouTube channel ID. |
list (by YouTube handle) | This example retrieves channel data for the "Google for Developers" YouTube channel. It uses the forHandle request parameter to identify the channel by its YouTube handle. |
list (by YouTube username) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the forUsername request parameter to identify the channel by its YouTube username. |
list (my channel) | This example retrieves the channel data for the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return channels owned by the user authorizing the request. |
list (channels managed by a content owner) | This example retrieves a list of channels managed by the specified YouTube content owner. |