Created
March 24, 2014 08:02
-
-
Save lesniakania/9736054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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