27
27
* Contains methods for creating OpenTok sessions, generating tokens, and working with archives.
28
28
* <p>
29
29
* To create a new OpenTok object, call the OpenTok constructor with your OpenTok API key
30
- * and the API secret from <a href="https://dashboard. tokbox.com">the OpenTok dashboard </a>. Do not publicly share
30
+ * and the API secret for your <a href="https://tokbox.com/account">TokBox account </a>. Do not publicly share
31
31
* your API secret. You will use it with the OpenTok constructor (only on your web
32
32
* server) to create OpenTok sessions.
33
33
* <p>
@@ -49,10 +49,8 @@ public class OpenTok {
49
49
/**
50
50
* Creates an OpenTok object.
51
51
*
52
- * @param apiKey Your OpenTok API key. (See the <a href="https://dashboard.tokbox.com">OpenTok
53
- * dashboard</a> page.)
54
- * @param apiSecret Your OpenTok API secret. (See the <a href="https://dashboard.tokbox.com">OpenTok dashboard</a>
55
- * page.)
52
+ * @param apiKey Your OpenTok API key. (See your <a href="https://tokbox.com/account">TokBox account page</a>.)
53
+ * @param apiSecret Your OpenTok API secret. (See your <a href="https://tokbox.com/account">TokBox account page</a>.)
56
54
*/
57
55
public OpenTok (int apiKey , String apiSecret ) {
58
56
this .apiKey = apiKey ;
@@ -79,7 +77,7 @@ private OpenTok(int apiKey, String apiSecret, HttpClient httpClient) {
79
77
*
80
78
* class Test {
81
79
* public static void main(String argv[]) throws OpenTokException {
82
- * int API_KEY = 0; // Replace with your OpenTok API key (see http ://dashboard. tokbox.com).
80
+ * int API_KEY = 0; // Replace with your OpenTok API key (see https ://tokbox.com/account ).
83
81
* String API_SECRET = ""; // Replace with your OpenTok API secret.
84
82
* OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
85
83
*
@@ -100,8 +98,7 @@ private OpenTok(int apiKey, String apiSecret, HttpClient httpClient) {
100
98
* }
101
99
* </pre>
102
100
* <p>
103
- * For testing, you can also use the <a href="https://dashboard.tokbox.com/projects">OpenTok
104
- * dashboard</a> page to generate test tokens.
101
+ * For testing, you can also generate tokens by logging in to your <a href="https://tokbox.com/account">TokBox account</a>.
105
102
*
106
103
* @param sessionId The session ID corresponding to the session to which the user will connect.
107
104
*
@@ -154,7 +151,7 @@ public String generateToken(String sessionId, TokenOptions tokenOptions) throws
154
151
*
155
152
* class Test {
156
153
* public static void main(String argv[]) throws OpenTokException {
157
- * int API_KEY = 0; // Replace with your OpenTok API key (see http ://dashboard. tokbox.com).
154
+ * int API_KEY = 0; // Replace with your OpenTok API key (see https ://tokbox.com/account ).
158
155
* String API_SECRET = ""; // Replace with your OpenTok API secret.
159
156
* OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
160
157
*
@@ -217,7 +214,8 @@ public String generateToken(String sessionId) throws OpenTokException {
217
214
* </pre>
218
215
*
219
216
* You can also create a session using the <a href="http://www.tokbox.com/opentok/api/#session_id_production">OpenTok
220
- * REST API</a> or the <a href="https://dashboard.tokbox.com/projects">OpenTok dashboard</a>.
217
+ * REST API</a> or or by logging in to your
218
+ * <a href="https://tokbox.com/account">TokBox account</a>.
221
219
*
222
220
* @param properties This SessionProperties object defines options for the session.
223
221
* These include the following:
0 commit comments