This is a ruby implementation of the OpenTok API. See complete documentation at www.tokbox.com/opentok/api/tools/documentation/api/server_side_libraries.html?proglang=ruby
-
Features currently available:
-
Create a token for authenticating the JS API
-
Generate a new session ID
-
# To create an instance of the API object: o = OpenTokSDK.new(1,'322fddd07b3f16bcd516adc398dc1f7465e0b4fa') # To generate a session ID using that instance: puts o.create_session('127.0.0.1',{'echoSuppression.enabled' => 'true'}).session_id # To create a token using that instance print o.generate_token(session_id)
-
xml-simple
-
A partner key and a partner secret on the OpenTok API (you can get those here: www.opentokbox.com/)
To run the unit test, put your api key and secret in the variables at the beginning of the file and run “ruby test.rb”.
OpenTok Ruby Library 0.9 www.opentok.com/
Copyright 2010, TokBox, Inc. Dual licensed under the MIT or GPL Version 2 licenses. www.tokbox.com/license
Date: 2010-11-07