/// <summary> /// 获取session_id下临时令牌列表 /// </summary> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <GetTokenResult> GetTokensNoPermanent(string session_id, int page = 1, int page_size = 25, long timeout = 30) { return(Rtc.Get("/sessions/" + session_id + "/tokens/nonpermanent?page=" + page + "&page_size=" + page_size, timeout).asJson <GetTokenResult>()); }
/// <summary> /// 获取一个令牌 /// </summary> /// <param name="token_id"></param> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <TokenResult> GetToken(string token_id, long timeout = 30) { return(Rtc.Get("/tokens/" + token_id, timeout).asJson <TokenResult>()); }
/// <summary> /// 获取一个会话 /// </summary> /// <param name="session_id">会话Id</param> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <SessionResult> GetSession(string session_id, long timeout = 30) { return(Rtc.Get("/sessions/" + session_id, timeout).asJson <SessionResult>()); }
/// <summary> /// 获取临时会话列表 /// </summary> /// <param name="timeout">请求超时时间,单位秒</param> /// <returns></returns> public static HttpResponse <GetSessionsResult> GetSessionsNoPermanent(int page = 1, int page_size = 25, long timeout = 30) { return(Rtc.Get("/sessions/nonpermanent?page=" + page + "&page_size=" + page_size, timeout).asJson <GetSessionsResult>()); }
/// <summary> /// 获取此项目信息 /// </summary> /// <param name="timeout"></param> /// <returns></returns> public HttpResponse <ProjectItem> GetProjectDetail(long timeout = 30) { return(Rtc.Get("/project/detail", timeout).asJson <ProjectItem>()); }
/// <summary> /// 获取一个录像记录 /// </summary> /// <param name="record_id"></param> /// <param name="timeout"></param> /// <returns></returns> public HttpResponse <RecordResult> GerRecord(string record_id, long timeout = 30) { return(Rtc.Get("/records/" + record_id, timeout).asJson <RecordResult>()); }
/// <summary> /// 获取录制记录列表 /// </summary> /// <param name="timeout"></param> /// <returns></returns> public HttpResponse <GetRecordsResult> GetRecords(int page = 1, int page_size = 25, long timeout = 30) { return(Rtc.Get("/records?page=" + page + "&page_size=" + page_size, timeout).asJson <GetRecordsResult>()); }