public async Task <Token> GetAccessCodeAsync(string code) { var postData = new { client_id = clientId, client_secret = clientSecret, code }; var response = await Requester.PostJsonAsync <TokenData>("access_tokens", postData); return(new Token(response.Token)); }
//PostMethod internal static async Task <Comment> PostMethodAsync(string api, object body) { return(await Requester.PostJsonAsync <Comment>(api, body)); }
public async Task <Tagging> PostItemTaggingsAsync(string itemId, Tagging tag) { return(await Requester.PostJsonAsync <Tagging>($"items/{itemId}/taggings", tag)); }