public
Description: Rails plugin for Kaltura API
Clone URL: git://github.com/eastmedia/kaltura.git
Search Repo:
kaltura / README
100644 46 lines (30 sloc) 1.809 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Kaltura API
======================
 
An ActiveResource-like RESTful interface to the Kaltura API
 
You can copy the templates/kaltura.yml.template file into your Rails app as config/kaltura.yml.
Replace the values with your own partner info that you received from Kaltura.
 
Specs are to test the Kaltura API directly, not this library itself.
 
Kaltura Pre-requisites
======================
 
You will need to signup for a Kaltura partner account so you can setup kaltura.yml in your RAILS_ROOT/config (see templates/kaltura.yml.template).
 
A note about Kaltura "ks" sessions
======================
 
Kaltura's backend uses its own session system that is completely independent from the Rails session. Kaltura's implementation requires that some requests use a regular session id, and some use an 'admin' session id. We have attempted to completely encapsulate it in the API's lower-level calls so you don't need to worry about which kind to make (see Kshow#admin_session_for to see which ones require admin sessions). When using the SWFs in views you may need to specify a ks. We will be posting some examples shortly displaying Kaltura's views.
 
Code Pre-requisites
======================
 
* ActiveSupport
* ActiveResource
 
Please note that there is a small bug in ActiveResource, where it will not return the response data if the response contains unescaped %'s. See patches/patch_for_activeresource_connection.rb for the fix.
 
Example
======================
 
# Creating a new Kshow:
ks = Kaltura::Kshow.new
ks.name = 'Example Kshow'
ks.puser_id = 'kaltura_user_id'
ks.save
 
Credits
======================
 
Developed by Eastmedia (http://eastmedia.com)
Sponsored by Remix America (http://remixamerica.org)
 
Copyright (c) 2008 Matt Pelletier, Eastmedia (http://eastmedia.com)
See MIT-LICENSE in this directory.