Skip to content

Commit

Permalink
"Updating samples to reflect recent changes."
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Apr 8, 2014
1 parent 2eaaa4a commit c64bc1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions go/post_bulletin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var (
func main() {
flag.Parse()

// A bulletin needs to contain a message and either a video or playlist.
// You can post a message with or without an accompanying video or playlist.
// You can't post both a video and playlist at the same time.
// A bulletin must contain a message and may also contain a video or a
// playlist. You can post a message with or without an accompanying video
// or playlist, but you can't post a video and playlist at the same time.
if *message == "" {
log.Fatalf("Please provide a message.")
}
Expand All @@ -38,7 +38,7 @@ func main() {
log.Fatalf("Error creating YouTube client: %v", err)
}

// Starting making YouTube API calls
// Start making YouTube API calls.
parts := "snippet"
bulletin := &youtube.Activity{
Snippet: &youtube.ActivitySnippet{
Expand All @@ -49,7 +49,7 @@ func main() {
if *videoID != "" || *playlistID != "" {
parts = "snippet,contentDetails"

// The resource ID element will be different depending on
// The resource ID element value differs depending on
// whether a playlist or a video is being posted.
var resourceId *youtube.ResourceId
switch {
Expand Down

0 comments on commit c64bc1a

Please sign in to comment.