Skip to content

Commit

Permalink
Set broadcast type when listing broadcasts, otherwise nothing is retu…
Browse files Browse the repository at this point in the history
…rned
  • Loading branch information
Jim Rogers committed Mar 23, 2017
1 parent 47727f9 commit 1c7f9c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public static void main(String[] args) {
youtube.liveBroadcasts().list("id,snippet");

// Indicate that the API response should not filter broadcasts
// based on their status.
liveBroadcastRequest.setBroadcastStatus("all");
// based on their type or status.
liveBroadcastRequest.setBroadcastType("all").setBroadcastStatus("all");

// Execute the API request and return the list of broadcasts.
LiveBroadcastListResponse returnedListResponse = liveBroadcastRequest.execute();
Expand Down

0 comments on commit 1c7f9c8

Please sign in to comment.