@@ -42,7 +42,7 @@ $ gem install opentok -v 2.2.0pre
42
42
## Initializing
43
43
44
44
Load the gem at the top of any file where it will be used. Then initialize an ` OpenTok::OpenTok `
45
- object with your own API Key and API Secret .
45
+ object with your OpenTok API key and API secret .
46
46
47
47
``` ruby
48
48
require " opentok"
@@ -52,7 +52,7 @@ opentok = OpenTok::OpenTok.new api_key, api_secret
52
52
53
53
## Creating Sessions
54
54
55
- To create an OpenTok Session, use the ` opentok .create_session(properties)` method. The
55
+ To create an OpenTok Session, use the ` OpenTok .create_session(properties)` method. The
56
56
` properties ` parameter is an optional Hash used to specify whether you are creating a p2p Session
57
57
and specifying a location hint. The ` session_id ` method of the returned ` OpenTok::Session `
58
58
instance is useful to get a sessionId that can be saved to a persistent store (e.g. database).
@@ -80,6 +80,7 @@ the Token.
80
80
``` ruby
81
81
# Generate a Token from just a session_id (fetched from a database)
82
82
token = opentok.generate_token session_id
83
+
83
84
# Generate a Token by calling the method on the Session (returned from createSession)
84
85
token = session.generate_token
85
86
@@ -148,7 +149,8 @@ $total = archive_list.total
148
149
149
150
# Documentation
150
151
151
- ** TODO** : Reference documentation is available at < http://opentok.github.io/opentok-ruby-sdk/ >
152
+ Reference documentation is available at < http://www.tokbox.com//opentok/libraries/server/ruby/reference/index.html > and in the
153
+ doc directory of the SDK.
152
154
153
155
# Requirements
154
156
@@ -161,7 +163,7 @@ The OpenTok Ruby SDK requires Ruby 1.9.3 or greater.
161
163
** TODO** : See the [ Releases] ( https://github.com/opentok/opentok-ruby-sdk/releases ) page for details
162
164
about each release.
163
165
164
- ## Important changes in v2.0
166
+ ## Important changes in v2.2
165
167
166
168
This version of the SDK includes support for working with OpenTok 2.0 archives. (This API does not
167
169
work with OpenTok 1.0 archives.)
0 commit comments