39
39
/**
40
40
* Contains methods for creating OpenTok sessions, generating tokens, and working with archives.
41
41
* <p>
42
- * To create a new OpenTokSDK object, call the OpenTokSDK constructor with your OpenTok API key
42
+ * To create a new OpenTok object, call the OpenTok constructor with your OpenTok API key
43
43
* and the API secret from <a href="https://dashboard.tokbox.com">the OpenTok dashboard</a>. Do not publicly share
44
- * your API secret. You will use it with the OpenTokSDK constructor (only on your web
44
+ * your API secret. You will use it with the OpenTok constructor (only on your web
45
45
* server) to create OpenTok sessions.
46
46
* <p>
47
47
* Be sure to include the entire OpenTok server SDK on your web server.
@@ -53,7 +53,7 @@ public class OpenTok {
53
53
protected HttpClient client ;
54
54
55
55
/**
56
- * Creates an OpenTokSDK object.
56
+ * Creates an OpenTok object.
57
57
*
58
58
* @param apiKey Your OpenTok API key. (See the <a href="https://dashboard.tokbox.com">OpenTok
59
59
* dashboard</a> page.)
@@ -87,7 +87,7 @@ public OpenTok(int apiKey, String apiSecret, String apiUrl) {
87
87
* public static void main(String argv[]) throws OpenTokException {
88
88
* int API_KEY = 0; // Replace with your OpenTok API key (see http://dashboard.tokbox.com).
89
89
* String API_SECRET = ""; // Replace with your OpenTok API secret.
90
- * OpenTokSDK sdk = new OpenTokSDK (API_KEY, API_SECRET);
90
+ * OpenTok sdk = new OpenTok (API_KEY, API_SECRET);
91
91
*
92
92
* //Generate a basic session. Or you could use an existing session ID.
93
93
* String sessionId = System.out.println(sdk.createSession());
@@ -156,13 +156,13 @@ public String generateToken(String sessionId, TokenOptions tokenOptions) throws
156
156
* The following example shows how to generate a token that has the default settings:
157
157
* <p>
158
158
* <pre>
159
- * import com.opentok.OpenTokSDK ;
159
+ * import com.opentok.OpenTok ;
160
160
*
161
161
* class Test {
162
162
* public static void main(String argv[]) throws OpenTokException {
163
163
* int API_KEY = 0; // Replace with your OpenTok API key (see http://dashboard.tokbox.com).
164
164
* String API_SECRET = ""; // Replace with your OpenTok API secret.
165
- * OpenTokSDK sdk = new OpenTokSDK (API_KEY, API_SECRET);
165
+ * OpenTok sdk = new OpenTok (API_KEY, API_SECRET);
166
166
*
167
167
* //Generate a basic session. Or you could use an existing session ID.
168
168
* String sessionId = System.out.println(sdk.createSession().getSessionId());
@@ -202,15 +202,15 @@ public String generateToken(String sessionId) throws OpenTokException {
202
202
* The following code creates a peer-to-peer session:
203
203
*
204
204
* <pre>
205
- * import com.opentok.OpenTokSDK ;
205
+ * import com.opentok.OpenTok ;
206
206
* import com.opentok.Session;
207
207
* import com.opentok.SessionProperties;
208
208
*
209
209
* class Test {
210
210
* public static void main(String argv[]) throws OpenTokException {
211
211
* int API_KEY = 0; // Replace with your OpenTok API key.
212
212
* String API_SECRET = ""; // Replace with your OpenTok API secret.
213
- * OpenTokSDK sdk = new OpenTokSDK (API_KEY, API_SECRET);
213
+ * OpenTok sdk = new OpenTok (API_KEY, API_SECRET);
214
214
*
215
215
* SessionProperties sp = new SessionProperties().Builder().p2p(true).build();
216
216
*
@@ -275,14 +275,14 @@ public Session createSession(SessionProperties properties) throws OpenTokExcepti
275
275
* The following example creates a session that uses the default settings:
276
276
*
277
277
* <pre>
278
- * import com.opentok.OpenTokSDK ;
278
+ * import com.opentok.OpenTok ;
279
279
* import com.opentok.SessionProperties;
280
280
*
281
281
* class Test {
282
282
* public static void main(String argv[]) throws OpenTokException {
283
283
* int API_KEY = 0; // Replace with your OpenTok API key.
284
284
* String API_SECRET = ""; // Replace with your OpenTok API secret.
285
- * OpenTokSDK sdk = new OpenTokSDK (API_KEY, API_SECRET);
285
+ * OpenTok sdk = new OpenTok (API_KEY, API_SECRET);
286
286
*
287
287
* String sessionId = sdk.createSession();
288
288
* System.out.println(sessionId);
0 commit comments