/// <summary> /// 查询API版本号详情 /// </summary> public async Task <ShowApiVersionResponse> ShowApiVersionAsync(ShowApiVersionRequest showApiVersionRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("api_version", showApiVersionRequest.ApiVersion.ToString()); string urlPath = HttpUtils.AddUrlPath("/{api_version}", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, showApiVersionRequest); HttpResponseMessage response = await DoHttpRequestAsync("GET", request); return(JsonUtils.DeSerialize <ShowApiVersionResponse>(response)); }
/// <summary> /// 查询指定API版本信息 /// </summary> public ShowApiVersionResponse ShowApiVersion(ShowApiVersionRequest showApiVersionRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("version", showApiVersionRequest.Version.ToString()); string urlPath = HttpUtils.AddUrlPath("/{version}", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showApiVersionRequest); HttpResponseMessage response = DoHttpRequestSync("GET", request); return(JsonUtils.DeSerialize <ShowApiVersionResponse>(response)); }