/// <summary> /// Update a subreddit's stylesheet asynchronously. /// op should be save to update the contents of the stylesheet. /// </summary> /// <param name="subredditsSubredditStylesheetInput">A valid SubredditsSubredditStylesheetInput instance</param> /// <param name="subreddit">The subreddit being queried</param> /// <returns>An object indicating any errors.</returns> public async Task <GenericContainer> SubredditStylesheetAsync(SubredditsSubredditStylesheetInput subredditsSubredditStylesheetInput, string subreddit = null) { return(await SendRequestAsync <GenericContainer>(Sr(subreddit) + "api/subreddit_stylesheet", subredditsSubredditStylesheetInput, Method.POST)); }
/// <summary> /// Update a subreddit's stylesheet. /// op should be save to update the contents of the stylesheet. /// </summary> /// <param name="subredditsSubredditStylesheetInput">A valid SubredditsSubredditStylesheetInput instance</param> /// <param name="subreddit">The subreddit being queried</param> /// <returns>An object indicating any errors.</returns> public GenericContainer SubredditStylesheet(SubredditsSubredditStylesheetInput subredditsSubredditStylesheetInput, string subreddit = null) { return(SendRequest <GenericContainer>(Sr(subreddit) + "api/subreddit_stylesheet", subredditsSubredditStylesheetInput, Method.POST)); }