以下のリストは、この方法の一般的なユースケースを示しています。ユースケースにカーソルを合わせて説明を表示するか、ユースケースをクリックして API Explorer でサンプル パラメータ値を読み込みます。全画面表示の API Explorer を開くと、エクスプローラで入力されたパラメータ値が動的に更新されるコードサンプルを確認できます。
次の表に、この方法の一般的なユースケースを示します。ユースケース名をクリックすると、API Explorer でサンプル パラメータ値を読み込むことができます。または、ユースケース名の下にあるコードアイコンをクリックすると、全画面表示の API Explorer でユースケースのコードサンプルを確認できます。全画面表示の UI では、パラメータ値やプロパティの値を更新すると、入力した値に合わせてコードサンプルが動的に更新されます。
この方法には、以下に説明する一般的なユースケースが 1 つあります。説明の下にあるボタンをクリックすると、API Explorer にサンプル値が入力されます。また、API Explorer が全画面表示され、それらの値を使用するコードサンプルが表示されます。また、値を変更すると、コードサンプルが動的に更新されます。
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. |