Ejemplo n.º 1
0
 /**
  * For TokBox internal use.
  */
 public OpenTok(int apiKey, string apiSecret, string apiUrl)
 {
     this.ApiKey = apiKey;
     this.ApiSecret = apiSecret;
     this.OpenTokServer = apiUrl;
     Client = new HttpClient(apiKey, apiSecret, this.OpenTokServer);
 }
Ejemplo n.º 2
0
 /**
 * Creates an OpenTok object.
 *
 * @param apiKey Your OpenTok API key. (See the <a href="https://dashboard.tokbox.com">
 * OpenTok dashboard</a> page.)
 * @param apiSecret Your OpenTok API secret. (See the
 * <a href="https://dashboard.tokbox.com">OpenTok dashboard</a> page.)
 */
 public OpenTok(int apiKey, string apiSecret)
 {
     this.ApiKey = apiKey;
     this.ApiSecret = apiSecret;
     this.OpenTokServer = "https://api.opentok.com";
     Client = new HttpClient(apiKey, apiSecret, this.OpenTokServer);
 }