public async Task <GetDingMeBaseDataResponse> GetDingMeBaseDataAsync(GetDingMeBaseDataRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetDingMeBaseDataHeaders headers = new GetDingMeBaseDataHeaders(); return(await GetDingMeBaseDataWithOptionsAsync(request, headers, runtime)); }
public GetDingMeBaseDataResponse GetDingMeBaseData(GetDingMeBaseDataRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetDingMeBaseDataHeaders headers = new GetDingMeBaseDataHeaders(); return(GetDingMeBaseDataWithOptions(request, headers, runtime)); }
public async Task <GetDingMeBaseDataResponse> GetDingMeBaseDataWithOptionsAsync(GetDingMeBaseDataRequest request, GetDingMeBaseDataHeaders 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.AppKey)) { query["appKey"] = request.AppKey; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.StartDay)) { query["startDay"] = request.StartDay; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.EndDay)) { query["endDay"] = request.EndDay; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ByDay)) { query["byDay"] = request.ByDay; } 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"] = headers.XAcsDingtalkAccessToken; } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Query = AlibabaCloud.OpenApiUtil.Client.Query(query), }; return(TeaModel.ToObject <GetDingMeBaseDataResponse>(await DoROARequestAsync("GetDingMeBaseData", "dingmi_1.0", "HTTP", "GET", "AK", "/v1.0/dingmi/robots/data", "json", req, runtime))); }