Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.29 KB

README.md

File metadata and controls

50 lines (29 loc) · 1.29 KB

WordPressReader (Standard)

WordPressReaderStd aims to simplify development of WordPress reader apps. It is written and compiled against .netStandard 2.1 (as of version 2.1.0). The only dependecy it has is Newtonsoft.Json just because you cannot find any better json-library out there.

The library is also available on Nuget

Features:

  1. get and filter:
  • posts
  • pages
  • comments
  • categories
  • media
  • tags
  • basic user info
  1. Allows anonymous commenting (requires additional setup on the WordPress site, though)
  2. MVVM-ready model implementation
  3. Contains some (quite useful) extensions and helpers
  4. Completely async

Basic usage:

All handlers follow the same principle:

//instantiate a handler
var handler = new PostsHandler();

//MVVMLight (or any other Locator):
SimpleIoc.Default.Register<IPostsHandler>(()=> new PostsHandler());

//get the latest or filtered data
var latestPosts = await _postsHandler.GetPostsAsync(BaseUrl, 20, 20, 1, categories);

You can get a more detailed overview in the Wiki

If you are experiencing difficulties or have ideas, feel free to contribute via issues or even pull requests.

Happy coding, everyone!