/// <summary> /// Edit the user This method edits the Vimeo account of the authenticated user. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="inlineObject15"> (optional)</param> /// <returns>ApiResponse of User</returns> public VimeoOpenApi.Client.ApiResponse <User> EditUserAlt1WithHttpInfo(InlineObject15 inlineObject15 = default(InlineObject15)) { VimeoOpenApi.Client.RequestOptions localVarRequestOptions = new VimeoOpenApi.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/vnd.vimeo.user+json" }; // to determine the Accept header String[] _accepts = new String[] { "application/vnd.vimeo.user+json" }; var localVarContentType = VimeoOpenApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = VimeoOpenApi.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = inlineObject15; // 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 = this.Client.Patch <User>("/me", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EditUserAlt1", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Edit the user This method edits the Vimeo account of the authenticated user. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="inlineObject15"> (optional)</param> /// <returns>Task of ApiResponse (User)</returns> public async System.Threading.Tasks.Task <VimeoOpenApi.Client.ApiResponse <User> > EditUserAlt1AsyncWithHttpInfo(InlineObject15 inlineObject15 = default(InlineObject15)) { VimeoOpenApi.Client.RequestOptions localVarRequestOptions = new VimeoOpenApi.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/vnd.vimeo.user+json" }; // to determine the Accept header String[] _accepts = new String[] { "application/vnd.vimeo.user+json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } localVarRequestOptions.Data = inlineObject15; // 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.PatchAsync <User>("/me", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("EditUserAlt1", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Edit the user This method edits the Vimeo account of the authenticated user. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="inlineObject15"> (optional)</param> /// <returns>Task of User</returns> public async System.Threading.Tasks.Task <User> EditUserAlt1Async(InlineObject15 inlineObject15 = default(InlineObject15)) { VimeoOpenApi.Client.ApiResponse <User> localVarResponse = await EditUserAlt1AsyncWithHttpInfo(inlineObject15); return(localVarResponse.Data); }
/// <summary> /// Edit the user This method edits the Vimeo account of the authenticated user. /// </summary> /// <exception cref="VimeoOpenApi.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="inlineObject15"> (optional)</param> /// <returns>User</returns> public User EditUserAlt1(InlineObject15 inlineObject15 = default(InlineObject15)) { VimeoOpenApi.Client.ApiResponse <User> localVarResponse = EditUserAlt1WithHttpInfo(inlineObject15); return(localVarResponse.Data); }