BaconographyPortable.Model.Reddit.RedditService.AddPost C# (CSharp) Method

AddPost() public method

public AddPost ( string kind, string url, string text, string subreddit, string title ) : System.Threading.Tasks.Task
kind string
url string
text string
subreddit string
title string
return System.Threading.Tasks.Task
        public virtual async Task AddPost(string kind, string url, string text, string subreddit, string title)
        {
            var modhash = await GetCurrentModhash();

            var arguments = new Dictionary<string, string>
            {
                {"api_type", "json"},
                {"kind", kind},
                {"url", url},
                {"text", text.Replace("\r\n", "\n").Replace("+", "%2B")},
                {"title", title},
                {"sr", subreddit},
                {"renderstyle", "html" },
                {"uh", modhash}
            };

            ProcessJsonErrors(await this.SendPost(await GetCurrentLoginCookie(), arguments, "http://www.reddit.com/api/submit"));
        }