コード例 #1
0
ファイル: OpenTok.cs プロジェクト: raman5282/Opentok-.NET-SDK
 /**
  * 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);
 }
コード例 #2
0
ファイル: OpenTok.cs プロジェクト: raman5282/Opentok-.NET-SDK
 /**
 * 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);
 }