Giter VIP home page Giter VIP logo

kollus-ruby's Introduction

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.

kollus-ruby's People

Contributors

simnalamburt avatar yosangwon avatar sim0629 avatar

Stargazers

 avatar 이주헌 avatar 정명진 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

kollus-ruby's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.