Skip to content

📦 kollus API written in ruby

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

privatenote/kollus-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kollus-ruby version

kollus API written in ruby. Click to see a sample

require 'kollus'

kollus = Kollus.new 'catenoid-sample', '1234567890abcdef' # Use your own one

# 동영상 플레이하기
sample = kollus.media '7MscjbVl', 'client_user_id'

sample.url        # http://v.kr.kollus.co...61|V1.0
sample.download   # http://v.kr.kollus.co...61|V1.0&download
sample.token      # D9C34B694FF4728E430E5E0..

# 동영상 업로드
upload = kollus.upload

upload.url        # http://upload.kr.kollus.com/20150101-abcd1234
upload.key        # 20150101-abcd1234
upload.expires_at # 2015-01-01 06:00:00 +0900

Getting Started

Install the gem with:

gem install kollus

Or you can add it to your Gemfile with:

gem 'kollus'

You can simply drop this gem into your ruby web application.

## Controller

# Use your own one
account_key = 'mycompany-key'
api_token = 'abcdef0123456789'

kollus = Kollus.new account_key, api_token

@media1 = kollus.media '7MscjbVl', 'user-1'
@media2 = kollus.media 'Kcrbjc2S', 'user-2'
@upload = kollus.upload
<%# View %>

<a href="<%= @media1.url %>">동영상 보러가기</a>
<a href="<%= @media2.download %>">동영상 다운받기</a>

<form action="<%= @upload.url %>" method="POST" enctype="multipart/form-data">
  <input type="file" name="upload-file">
  <input type="submit" value="동영상 업로드">
</form>

Please look at the sample application for the working example of kollus-ruby.

How to run sample application

See kollus-ruby-sample



kollus-ruby is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See COPYRIGHT for details.

About

📦 kollus API written in ruby

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%