public virtual IActionResult UrlDecode([FromBody] InlineObject2 stringInput) { //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(OutputString)); //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400, default(OutputString)); string exampleJson = null; exampleJson = "{\n \"result\" : \"string\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject <OutputString>(exampleJson) : default(OutputString); //TODO: Change the data returned return(new ObjectResult(example)); }
/// <summary> /// Add a channel to a list of categories This method adds the specified channel to multiple categories. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The ID of the channel.</param> /// <param name="inlineObject2"></param> /// <returns>Task of void</returns> public async System.Threading.Tasks.Task AddChannelCategoriesAsync(decimal channelId, InlineObject2 inlineObject2) { await AddChannelCategoriesAsyncWithHttpInfo(channelId, inlineObject2); }
/// <summary> /// Add a channel to a list of categories This method adds the specified channel to multiple categories. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The ID of the channel.</param> /// <param name="inlineObject2"></param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <VimeoOpenApi.Client.ApiResponse <Object> > AddChannelCategoriesAsyncWithHttpInfo(decimal channelId, InlineObject2 inlineObject2) { // verify the required parameter 'inlineObject2' is set if (inlineObject2 == null) { throw new VimeoOpenApi.Client.ApiException(400, "Missing required parameter 'inlineObject2' when calling ChannelsCategoriesApi->AddChannelCategories"); } VimeoOpenApi.Client.RequestOptions localVarRequestOptions = new VimeoOpenApi.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json" }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } localVarRequestOptions.PathParameters.Add("channel_id", VimeoOpenApi.Client.ClientUtils.ParameterToString(channelId)); // path parameter localVarRequestOptions.Data = inlineObject2; // authentication (oauth2) required // oauth required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PutAsync <Object>("/channels/{channel_id}/categories", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("AddChannelCategories", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Add a channel to a list of categories This method adds the specified channel to multiple categories. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The ID of the channel.</param> /// <param name="inlineObject2"></param> /// <returns></returns> public void AddChannelCategories(decimal channelId, InlineObject2 inlineObject2) { AddChannelCategoriesWithHttpInfo(channelId, inlineObject2); }