public async Task <GetMaxVersionResponse> GetMaxVersionAsync(GetMaxVersionRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetMaxVersionHeaders headers = new GetMaxVersionHeaders(); return(await GetMaxVersionWithOptionsAsync(request, headers, runtime)); }
public GetMaxVersionResponse GetMaxVersion(GetMaxVersionRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetMaxVersionHeaders headers = new GetMaxVersionHeaders(); return(GetMaxVersionWithOptions(request, headers, runtime)); }
public async Task <GetMaxVersionResponse> GetMaxVersionWithOptionsAsync(GetMaxVersionRequest request, GetMaxVersionHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); Dictionary <string, object> query = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.BundleId)) { query["bundleId"] = request.BundleId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.MiniAppId)) { query["miniAppId"] = request.MiniAppId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Version)) { query["version"] = request.Version; } Dictionary <string, string> realHeaders = new Dictionary <string, string>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.CommonHeaders)) { realHeaders = headers.CommonHeaders; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.XAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = AlibabaCloud.TeaUtil.Common.ToJSONString(headers.XAcsDingtalkAccessToken); } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Query = AlibabaCloud.OpenApiUtil.Client.Query(query), }; return(TeaModel.ToObject <GetMaxVersionResponse>(await DoROARequestAsync("GetMaxVersion", "miniapp_1.0", "HTTP", "GET", "AK", "/v1.0/miniapp/apps/maxVersions", "json", req, runtime))); }