コード例 #1
0
        static void Main(string[] args)
        {
            var client   = new WordPressRestClient.WordPressClient("learnportugueseskype.wordpress.com/");
            var response = client.Posts.GetAll();

            Console.ReadLine();
        }
コード例 #2
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            try {
                var client   = new WordPressRestClient.WordPressClient("learnportugueseskype.wordpress.com/");
                var response = await client.Posts.GetAll();

                var json = await client.Posts.GetAllAsJson();

                var postsAsJson = JsonConvert.SerializeObject(response);
            }
            catch (Exception ex) {
                throw;
            }
        }