Coder Social home page Coder Social logo

prabode / kaltura-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diffalot/kaltura-ruby

1.0 2.0 0.0 6.45 MB

Ruby Gem implementation of Kaltura's Ruby Client Library

Home Page: http://www.kaltura.org/project/kcl_ruby

License: GNU Affero General Public License v3.0

Ruby 100.00%

kaltura-ruby's Introduction

kaltura-ruby

A gem implementation of Kaltura's Ruby API client. The kaltura-ruby library suffers from poor namespacing, file separation, and a bug preventing multipart POST requests to the Kaltura API. This gem is a work in progress, and the interface may change between versions as this this library is one giant refactoring project.

Kaltura.org project page

Gem Documentation

Installation

$ gem install velir_kaltura-ruby

In a rails application:

# config/environment.rb
config.gem "velir_kaltura-ruby",:lib=>"kaltura"

Usage

require 'yaml'
require 'kaltura'

# These values may be retrieved from your KMC account
login_email = your_login_email
login_password = your_login_password
partner_id = your_partner_id
subpartner_id = your_subpartner_id
administrator_secret = your_administrator_secret
user_secret = your_user_secret

config = Kaltura::Configuration.new( partner_id )
client = Kaltura::Client.new( config )
session = client.session_service.start( admin_secret, '', Kaltura::Constants::SessionType::ADMIN )
client.ks = session

filter = Kaltura::Filter::BaseFilter.new
pager = Kaltura::FilterPager.new

media = client.media_service.list(filter, pager)
puts "\nmedia:"
puts media.to_yaml

#video = File.open("/home/papyromancer/ovb.ogv")
#client.media_service.upload(video)

Tests

  If you want to run tests you need the gems.
  	sudo gem install jeweler
	sudo gem install spicycode-rcov
	sudo gem install shoulda

	Set up yaml file:
	copy the config/server.yml.template to  config/server.yml and enter your kaltura config information

	Execute the tests:
	rake test

	You should see the following results:
	3 tests, 2 assertions, 0 failures, 0 errors, 0 skips

	Venturit team is in the process of adding more tests. Should be available soon.

Copyright

The original Ruby client library for Kaltura may be found at http://www.kaltura.org/project/kcl_ruby . This implementation of the library as a gem attempts to track the Kaltura svn as closely as possible while adding relevant documentation.

This library is released in compliance with the GNU Affero General Public License.

Copyright (c) 2006-2010 Kaltura Inc. See LICENSE for details.

kaltura-ruby's People

Contributors

patricksrobertson avatar prabode avatar sharn722 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.