35
35
* Contains methods for creating OpenTok sessions, generating tokens, and working with archives.
36
36
* <p>
37
37
* To create a new OpenTok object, call the OpenTok constructor with your OpenTok API key
38
- * and the API secret from <a href="https://dashboard. tokbox.com">the OpenTok dashboard </a>. Do not publicly share
38
+ * and the API secret for your <a href="https://tokbox.com/account">TokBox account </a>. Do not publicly share
39
39
* your API secret. You will use it with the OpenTok constructor (only on your web
40
40
* server) to create OpenTok sessions.
41
41
* <p>
@@ -54,10 +54,8 @@ public class OpenTok {
54
54
/**
55
55
* Creates an OpenTok object.
56
56
*
57
- * @param apiKey Your OpenTok API key. (See the <a href="https://dashboard.tokbox.com">OpenTok
58
- * dashboard</a> page.)
59
- * @param apiSecret Your OpenTok API secret. (See the <a href="https://dashboard.tokbox.com">OpenTok dashboard</a>
60
- * page.)
57
+ * @param apiKey Your OpenTok API key. (See your <a href="https://tokbox.com/account">TokBox account page</a>.)
58
+ * @param apiSecret Your OpenTok API secret. (See your <a href="https://tokbox.com/account">TokBox account page</a>.)
61
59
*/
62
60
public OpenTok (int apiKey , String apiSecret ) {
63
61
this (apiKey , apiSecret , "https://api.opentok.com" );
@@ -84,7 +82,7 @@ public OpenTok(int apiKey, String apiSecret, String apiUrl) {
84
82
*
85
83
* class Test {
86
84
* public static void main(String argv[]) throws OpenTokException {
87
- * int API_KEY = 0; // Replace with your OpenTok API key (see http ://dashboard. tokbox.com).
85
+ * int API_KEY = 0; // Replace with your OpenTok API key (see https ://tokbox.com/account ).
88
86
* String API_SECRET = ""; // Replace with your OpenTok API secret.
89
87
* OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
90
88
*
@@ -105,8 +103,7 @@ public OpenTok(int apiKey, String apiSecret, String apiUrl) {
105
103
* }
106
104
* </pre>
107
105
* <p>
108
- * For testing, you can also use the <a href="https://dashboard.tokbox.com/projects">OpenTok
109
- * dashboard</a> page to generate test tokens.
106
+ * For testing, you can also generate tokens by logging in to your <a href="https://tokbox.com/account">TokBox account</a>.
110
107
*
111
108
* @param sessionId The session ID corresponding to the session to which the user will connect.
112
109
*
@@ -159,7 +156,7 @@ public String generateToken(String sessionId, TokenOptions tokenOptions) throws
159
156
*
160
157
* class Test {
161
158
* public static void main(String argv[]) throws OpenTokException {
162
- * int API_KEY = 0; // Replace with your OpenTok API key (see http ://dashboard. tokbox.com).
159
+ * int API_KEY = 0; // Replace with your OpenTok API key (see https ://tokbox.com/account ).
163
160
* String API_SECRET = ""; // Replace with your OpenTok API secret.
164
161
* OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
165
162
*
@@ -222,7 +219,8 @@ public String generateToken(String sessionId) throws OpenTokException {
222
219
* </pre>
223
220
*
224
221
* You can also create a session using the <a href="http://www.tokbox.com/opentok/api/#session_id_production">OpenTok
225
- * REST API</a> or the <a href="https://dashboard.tokbox.com/projects">OpenTok dashboard</a>.
222
+ * REST API</a> or or by logging in to your
223
+ * <a href="https://tokbox.com/account">TokBox account</a>.
226
224
*
227
225
* @param properties This SessionProperties object defines options for the session.
228
226
* These include the following:
0 commit comments