/// <summary> /// Open a dialog Open an interactive dialog using a trigger ID provided by a slash command, or some other action payload. 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> ActionsDialogsOpenPostWithHttpInfo(InlineObject61 body) { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing required parameter 'body' when calling IntegrationActionsApi->ActionsDialogsOpenPost"); } 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/open", requestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception exception = this.ExceptionFactory("ActionsDialogsOpenPost", response); if (exception != null) { throw exception; } } return(response); }
/// <summary> /// Open a dialog Open an interactive dialog using a trigger ID provided by a slash command, or some other action payload. 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> > ActionsDialogsOpenPostAsyncWithHttpInfo(InlineObject61 body) { // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing required parameter 'body' when calling IntegrationActionsApi->ActionsDialogsOpenPost"); } 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/open", requestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception exception = this.ExceptionFactory("ActionsDialogsOpenPost", response); if (exception != null) { throw exception; } } return(response); }
/// <summary> /// Open a dialog Open an interactive dialog using a trigger ID provided by a slash command, or some other action payload. 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> ActionsDialogsOpenPostAsync(InlineObject61 body) { ApiResponse <StatusOK> localVarResponse = await ActionsDialogsOpenPostAsyncWithHttpInfo(body); return(localVarResponse.Data); }
/// <summary> /// Open a dialog Open an interactive dialog using a trigger ID provided by a slash command, or some other action payload. 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 ActionsDialogsOpenPost(InlineObject61 body) { ApiResponse <StatusOK> localVarResponse = ActionsDialogsOpenPostWithHttpInfo(body); return(localVarResponse.Data); }