/** * 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); }
/** * 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); }