Skip to content

Commit

Permalink
Merge pull request #109 from jimrogerz/fix_broadcast_list
Browse files Browse the repository at this point in the history
Set broadcast type when listing broadcasts, otherwise nothing is returned
  • Loading branch information
mchambers committed Mar 27, 2017
2 parents 47727f9 + 1c7f9c8 commit 0b62f83
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 0b62f83

Please sign in to comment.