Skip to content

Commit cadf9f8

Browse files
committed
Fix for #34
(Docs corrections)
1 parent 7b8d371 commit cadf9f8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/main/java/com/opentok/OpenTok.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
/**
4040
* Contains methods for creating OpenTok sessions, generating tokens, and working with archives.
4141
* <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
4343
* 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
4545
* server) to create OpenTok sessions.
4646
* <p>
4747
* Be sure to include the entire OpenTok server SDK on your web server.
@@ -53,7 +53,7 @@ public class OpenTok {
5353
protected HttpClient client;
5454

5555
/**
56-
* Creates an OpenTokSDK object.
56+
* Creates an OpenTok object.
5757
*
5858
* @param apiKey Your OpenTok API key. (See the <a href="https://dashboard.tokbox.com">OpenTok
5959
* dashboard</a> page.)
@@ -87,7 +87,7 @@ public OpenTok(int apiKey, String apiSecret, String apiUrl) {
8787
* public static void main(String argv[]) throws OpenTokException {
8888
* int API_KEY = 0; // Replace with your OpenTok API key (see http://dashboard.tokbox.com).
8989
* 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);
9191
*
9292
* //Generate a basic session. Or you could use an existing session ID.
9393
* String sessionId = System.out.println(sdk.createSession());
@@ -156,13 +156,13 @@ public String generateToken(String sessionId, TokenOptions tokenOptions) throws
156156
* The following example shows how to generate a token that has the default settings:
157157
* <p>
158158
* <pre>
159-
* import com.opentok.OpenTokSDK;
159+
* import com.opentok.OpenTok;
160160
*
161161
* class Test {
162162
* public static void main(String argv[]) throws OpenTokException {
163163
* int API_KEY = 0; // Replace with your OpenTok API key (see http://dashboard.tokbox.com).
164164
* 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);
166166
*
167167
* //Generate a basic session. Or you could use an existing session ID.
168168
* String sessionId = System.out.println(sdk.createSession().getSessionId());
@@ -202,15 +202,15 @@ public String generateToken(String sessionId) throws OpenTokException {
202202
* The following code creates a peer-to-peer session:
203203
*
204204
* <pre>
205-
* import com.opentok.OpenTokSDK;
205+
* import com.opentok.OpenTok;
206206
* import com.opentok.Session;
207207
* import com.opentok.SessionProperties;
208208
*
209209
* class Test {
210210
* public static void main(String argv[]) throws OpenTokException {
211211
* int API_KEY = 0; // Replace with your OpenTok API key.
212212
* 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);
214214
*
215215
* SessionProperties sp = new SessionProperties().Builder().p2p(true).build();
216216
*
@@ -275,14 +275,14 @@ public Session createSession(SessionProperties properties) throws OpenTokExcepti
275275
* The following example creates a session that uses the default settings:
276276
*
277277
* <pre>
278-
* import com.opentok.OpenTokSDK;
278+
* import com.opentok.OpenTok;
279279
* import com.opentok.SessionProperties;
280280
*
281281
* class Test {
282282
* public static void main(String argv[]) throws OpenTokException {
283283
* int API_KEY = 0; // Replace with your OpenTok API key.
284284
* 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);
286286
*
287287
* String sessionId = sdk.createSession();
288288
* System.out.println(sessionId);

0 commit comments

Comments
 (0)