.net Standard (1.4) library to get data from the WordPress API (v2) for blog reader apps.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
WordPressReader
.gitattributes
.gitignore
LICENSE
README.md

README.md

WordPressReader (Standard) (netStandard 1.4)

WordPressReaderStd aims to simplify development of WordPress reader apps. It is written and compiled with .netStandard 1.4 to enable usage of it everywhere you can use .netStandard libraries. 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!