Skip to content

Instantly share code, notes, and snippets.

@americos
Created June 4, 2013 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save americos/5709494 to your computer and use it in GitHub Desktop.
Save americos/5709494 to your computer and use it in GitHub Desktop.
require 'youtube_it'
USER = "YOUTUBE_USER_NAME"
PASS = "YOUTUBE_PASS"
DEV_KEY = "YOUTUBE_DEV_KEY"
##Upload a video
uploader = YouTubeIt::Upload::VideoUpload.new(
:username => USER,
:password => PASS,
:dev_key => DEV_KEY
)
uploaded_video = uploader.upload( File.open("SOME_VIDEO_FILE.mov"), :title => "SOME TITLE", :description => "SOME COOL DESCRIPTION", :category => "People", :keywords => %W[cool test])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment