示例#1
0
        public async Task <GetSearchItemResponse> GetSearchItemAsync(string tabId, string itemId)
        {
            AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
            GetSearchItemHeaders headers = new GetSearchItemHeaders();

            return(await GetSearchItemWithOptionsAsync(tabId, itemId, headers, runtime));
        }
示例#2
0
        public GetSearchItemResponse GetSearchItem(string tabId, string itemId)
        {
            AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
            GetSearchItemHeaders headers = new GetSearchItemHeaders();

            return(GetSearchItemWithOptions(tabId, itemId, headers, runtime));
        }
示例#3
0
        public async Task <GetSearchItemResponse> GetSearchItemWithOptionsAsync(string tabId, string itemId, GetSearchItemHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
        {
            tabId  = AlibabaCloud.OpenApiUtil.Client.GetEncodeParam(tabId);
            itemId = AlibabaCloud.OpenApiUtil.Client.GetEncodeParam(itemId);
            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,
            };
            return(TeaModel.ToObject <GetSearchItemResponse>(await DoROARequestAsync("GetSearchItem", "search_1.0", "HTTP", "GET", "AK", "/v1.0/search/tabs/" + tabId + "/items/" + itemId, "json", req, runtime)));
        }