예제 #1
0
        public Task VoteAsync(VoteType vote, string itemId)
        {
            EnsureIsAuthorized();
            var request = new NameValueCollection {
                { "direction", vote.ToString().ToLower() }
            };

            return(_restTemplate.PutAsync("links/" + itemId + "/vote", request));
        }