На этой странице вы можете ознакомиться с распространенными вариантами использования API YouTube Live Streaming и API данных YouTube.
Когда вы выбираете ресурс и метод, таблица ниже обновляется, чтобы отобразить список распространенных вариантов использования, включая описание каждого варианта использования для этого метода. Кроме того:
curl
. Ресурс | Метод |
Use cases | |
---|---|
list (by ID) | This example retrieves information about a specified live broadcast. It uses the id request parameter to identify the broadcast. |
list (by broadcast status) | This example retrieves information about active live broadcasts. The broadcastStatus request parameter can be used to retrieve information about about all , active , completed , or upcoming live broadcasts. Note that the broadcastStatus parameter is also set to all to ensure that all matching broadcasts are included in the response. |
list (my broadcasts) | This example retrieves information about the authenticated user's live broadcasts. Note that the broadcastStatus parameter is also set to all to ensure that all matching broadcasts are included in the response. |