コード例 #1
0
            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));
            }
コード例 #2
0
 //PostMethod
 internal static async Task <Comment> PostMethodAsync(string api, object body)
 {
     return(await Requester.PostJsonAsync <Comment>(api, body));
 }
コード例 #3
0
 public async Task <Tagging> PostItemTaggingsAsync(string itemId, Tagging tag)
 {
     return(await Requester.PostJsonAsync <Tagging>($"items/{itemId}/taggings", tag));
 }