public async Task <PullDataByPageResponse> PullDataByPageAsync(PullDataByPageRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); PullDataByPageHeaders headers = new PullDataByPageHeaders(); return(await PullDataByPageWithOptionsAsync(request, headers, runtime)); }
public PullDataByPageResponse PullDataByPage(PullDataByPageRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); PullDataByPageHeaders headers = new PullDataByPageHeaders(); return(PullDataByPageWithOptions(request, headers, runtime)); }
public async Task <PullDataByPageResponse> PullDataByPageWithOptionsAsync(PullDataByPageRequest request, PullDataByPageHeaders 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.AppId)) { query["appId"] = request.AppId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DataModelId)) { query["dataModelId"] = request.DataModelId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DatetimeFilterField)) { query["datetimeFilterField"] = request.DatetimeFilterField; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.MaxDatetime)) { query["maxDatetime"] = request.MaxDatetime; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.MaxResults)) { query["maxResults"] = request.MaxResults; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.MinDatetime)) { query["minDatetime"] = request.MinDatetime; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.NextToken)) { query["nextToken"] = request.NextToken; } 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 <PullDataByPageResponse>(await DoROARequestAsync("PullDataByPage", "connector_1.0", "HTTP", "GET", "AK", "/v1.0/connector/data", "json", req, runtime))); }