public async Task <GetOfficialAccountContactInfoResponse> GetOfficialAccountContactInfoAsync(string userId) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetOfficialAccountContactInfoHeaders headers = new GetOfficialAccountContactInfoHeaders(); return(await GetOfficialAccountContactInfoWithOptionsAsync(userId, headers, runtime)); }
public GetOfficialAccountContactInfoResponse GetOfficialAccountContactInfo(string userId) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetOfficialAccountContactInfoHeaders headers = new GetOfficialAccountContactInfoHeaders(); return(GetOfficialAccountContactInfoWithOptions(userId, headers, runtime)); }
public async Task <GetOfficialAccountContactInfoResponse> GetOfficialAccountContactInfoWithOptionsAsync(string userId, GetOfficialAccountContactInfoHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { 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, }; return(TeaModel.ToObject <GetOfficialAccountContactInfoResponse>(await DoROARequestAsync("GetOfficialAccountContactInfo", "crm_1.0", "HTTP", "GET", "AK", "/v1.0/crm/officialAccounts/contacts/" + userId, "json", req, runtime))); }