/// <summary> /// 获取当前用户的课堂列表 /// </summary> public ListClassroomsResponse ListClassrooms(ListClassroomsRequest listClassroomsRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); string urlPath = HttpUtils.AddUrlPath("/v3/classrooms", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listClassroomsRequest); HttpResponseMessage response = DoHttpRequestSync("GET", request); return(JsonUtils.DeSerialize <ListClassroomsResponse>(response)); }
/// <summary> /// 获取当前用户的课堂列表 /// </summary> public async Task <ListClassroomsResponse> ListClassroomsAsync(ListClassroomsRequest listClassroomsRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); string urlPath = HttpUtils.AddUrlPath("/v3/classrooms", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, listClassroomsRequest); HttpResponseMessage response = await DoHttpRequestAsync("GET", request); return(JsonUtils.DeSerialize <ListClassroomsResponse>(response)); }