public async Task <SendSingleInteractiveCardResponse> SendSingleInteractiveCardAsync(string userId) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); SendSingleInteractiveCardHeaders headers = new SendSingleInteractiveCardHeaders(); return(await SendSingleInteractiveCardWithOptionsAsync(userId, headers, runtime)); }
public SendSingleInteractiveCardResponse SendSingleInteractiveCard(string userId) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); SendSingleInteractiveCardHeaders headers = new SendSingleInteractiveCardHeaders(); return(SendSingleInteractiveCardWithOptions(userId, headers, runtime)); }
public async Task <SendSingleInteractiveCardResponse> SendSingleInteractiveCardWithOptionsAsync(string userId, SendSingleInteractiveCardHeaders 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 <SendSingleInteractiveCardResponse>(await DoROARequestAsync("SendSingleInteractiveCard", "projectIntegration_1.0", "HTTP", "POST", "AK", "/v1.0/projectIntegration/users/" + userId + "/singleChatCardMessages", "json", req, runtime))); }