/// <summary> /// Submit a dialog Endpoint used by the Mattermost clients to submit a dialog. See https://docs.mattermost.com/developer/interactive-dialogs.html for more information on interactive dialogs. __Minimum server version: 5.6__ /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="body"></param> /// <returns>ApiResponse of StatusOK</returns> public ApiResponse <StatusOK> ActionsDialogsSubmitPostWithHttpInfo(InlineObject62 body) { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing required parameter 'body' when calling IntegrationActionsApi->ActionsDialogsSubmitPost"); } var requestOptions = new RequestOptions(); string[] @contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] @accepts = new string[] { "application/json" }; var localVarContentType = Sdcb.Mattermost.DotNetSdk.Client.ClientUtils.SelectHeaderContentType(@contentTypes); if (localVarContentType != null) { requestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Sdcb.Mattermost.DotNetSdk.Client.ClientUtils.SelectHeaderAccept(@accepts); if (localVarAccept != null) { requestOptions.HeaderParameters.Add("Accept", localVarAccept); } requestOptions.Data = body; // make the HTTP request var response = this.Client.Post <StatusOK>("/actions/dialogs/submit", requestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception exception = this.ExceptionFactory("ActionsDialogsSubmitPost", response); if (exception != null) { throw exception; } } return(response); }
/// <summary> /// Submit a dialog Endpoint used by the Mattermost clients to submit a dialog. See https://docs.mattermost.com/developer/interactive-dialogs.html for more information on interactive dialogs. __Minimum server version: 5.6__ /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="body"></param> /// <returns>Task of ApiResponse (StatusOK)</returns> public async System.Threading.Tasks.Task <ApiResponse <StatusOK> > ActionsDialogsSubmitPostAsyncWithHttpInfo(InlineObject62 body) { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing required parameter 'body' when calling IntegrationActionsApi->ActionsDialogsSubmitPost"); } var requestOptions = new RequestOptions(); string[] @contentTypes = new string[] { "application/json" }; // to determine the Accept header string[] @accepts = new string[] { "application/json" }; foreach (var contentType in @contentTypes) { requestOptions.HeaderParameters.Add("Content-Type", contentType); } foreach (var accept in @accepts) { requestOptions.HeaderParameters.Add("Accept", accept); } requestOptions.Data = body; // make the HTTP request var response = await this.AsynchronousClient.PostAsync <StatusOK>("/actions/dialogs/submit", requestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception exception = this.ExceptionFactory("ActionsDialogsSubmitPost", response); if (exception != null) { throw exception; } } return(response); }
/// <summary> /// Submit a dialog Endpoint used by the Mattermost clients to submit a dialog. See https://docs.mattermost.com/developer/interactive-dialogs.html for more information on interactive dialogs. __Minimum server version: 5.6__ /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="body"></param> /// <returns>Task of StatusOK</returns> public async System.Threading.Tasks.Task <StatusOK> ActionsDialogsSubmitPostAsync(InlineObject62 body) { ApiResponse <StatusOK> localVarResponse = await ActionsDialogsSubmitPostAsyncWithHttpInfo(body); return(localVarResponse.Data); }
/// <summary> /// Submit a dialog Endpoint used by the Mattermost clients to submit a dialog. See https://docs.mattermost.com/developer/interactive-dialogs.html for more information on interactive dialogs. __Minimum server version: 5.6__ /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="body"></param> /// <returns>StatusOK</returns> public StatusOK ActionsDialogsSubmitPost(InlineObject62 body) { ApiResponse <StatusOK> localVarResponse = ActionsDialogsSubmitPostWithHttpInfo(body); return(localVarResponse.Data); }