Exemplo n.º 1
0
        public dynamic Follow(string url)
        {
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }

            FormParameters form = new FormParameters
            {
                { "url", url },
            };

            return(_tumblr.POST(new Uri("http://api.tumblr.com/v2/user/follow"), form));
        }
Exemplo n.º 2
0
        public dynamic PostText(string baseHostname, string body, string title = null, TumblrPostOptions options = null)
        {
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }
            if (options == null)
            {
                options = new TumblrPostOptions();
            }

            FormParameters form = GetPostParameters(options);

            form.Add("type", "text");
            form.Add("title", title);
            form.Add("body", body);
            string url = String.Format("http://api.tumblr.com/v2/blog/{0}/post", baseHostname);

            return(_tumblr.POST(new Uri(url), form));
        }