kaltura-ruby 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +21 -8
- data/VERSION.yml +1 -1
- data/kaltura-ruby.gemspec +1 -1
- data/lib/kaltura-ruby.rb +1 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,27 +1,40 @@
|
|
1
1
|
= kaltura-ruby
|
2
2
|
|
3
|
-
A gem implementation of Kaltura's Ruby API
|
4
|
-
|
5
|
-
Currently this gem uses the very outdated api version 0.7, there are tools to generate a more up to date version of the api included in the main KalturaCE distribution. For more information, visit http://www.kaltura.org/api-client-library-generator-guide
|
3
|
+
A gem implementation of Kaltura's Ruby API client
|
6
4
|
|
7
5
|
http://www.kaltura.org/project/kcl_ruby
|
8
6
|
|
7
|
+
= Installation
|
8
|
+
|
9
|
+
$ gem install kaltura-ruby
|
10
|
+
|
9
11
|
= Usage
|
10
12
|
|
13
|
+
require 'yaml'
|
11
14
|
require 'kaltura-ruby'
|
12
15
|
|
13
16
|
# These values may be retrieved from your KMC account
|
14
17
|
login_email = your_login_email
|
15
18
|
login_password = your_login_password
|
16
|
-
|
19
|
+
partner_id = your_partner_id
|
17
20
|
subpartner_id = your_subpartner_id
|
18
21
|
administrator_secret = your_administrator_secret
|
19
22
|
user_secret = your_user_secret
|
20
23
|
|
21
|
-
config = Kaltura::KalturaConfiguration.new( partner_id
|
22
|
-
user = Kaltura::KalturaSessionUser.new( partner_id )
|
24
|
+
config = Kaltura::KalturaConfiguration.new( partner_id )
|
23
25
|
client = Kaltura::KalturaClient.new( config )
|
24
|
-
|
26
|
+
session = client.session_service.start( admin_secret, '', KalturaSessionType::ADMIN )
|
27
|
+
client.ks = session
|
28
|
+
|
29
|
+
filter = KalturaFilter.new
|
30
|
+
pager = KalturaFilterPager.new
|
31
|
+
|
32
|
+
media = client.media_service.list(filter, pager)
|
33
|
+
puts "\nmedia:"
|
34
|
+
puts media.to_yaml
|
35
|
+
|
36
|
+
#video = File.open("/home/papyromancer/ovb.ogv")
|
37
|
+
#client.media_service.upload(video)
|
25
38
|
|
26
39
|
== Copyright
|
27
40
|
|
@@ -29,4 +42,4 @@ The original Ruby client library for Kaltura may be found at http://www.kaltura.
|
|
29
42
|
|
30
43
|
This library is released in compliance with the GNU Affero General Public License.
|
31
44
|
|
32
|
-
Copyright (c) 2006-
|
45
|
+
Copyright (c) 2006-2010 Kaltura Inc. See LICENSE for details.
|
data/VERSION.yml
CHANGED
data/kaltura-ruby.gemspec
CHANGED
data/lib/kaltura-ruby.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaltura-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- papyromancer
|