Skip to content

Instantly share code, notes, and snippets.

@lesniakania
Created March 24, 2014 08:02
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 lesniakania/9736054 to your computer and use it in GitHub Desktop.
Save lesniakania/9736054 to your computer and use it in GitHub Desktop.
require 'panda'
Panda.configure do
access_key "ACCESS_KEY"
secret_key "SECRET_KEY"
cloud_id "CLOUD_ID"
api_host "api.pandastream.com"
api_port "443"
end
# upload from disc
Panda::Video.create!(:file => File.new("path_to_the_file.mp4"))
# upload from source url
Panda::Video.create!(:source_url => 'https://s3.amazonaws.com/your-bucket-or-completely-diffrent-url/panda.mp4')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment